Welcome To Snipplr


Everyone's Recent Snippets



1 ... 42 43 44 45 46 ... 554
Leading and Trailing Whitespace
0 3747 posted 12 years ago by Pavonz
Method to Check if an int is a Prime Number
0 1003 posted 12 years ago by jholderman
Get obj props using java.beans.Introspector.getBeanInfo()
0 1986 posted 12 years ago by laurenceosx
0 991 posted 12 years ago by phl
filter out by category ID in Magento
0 1224 posted 12 years ago by tomle123
append this to switch to different Stores in Magento
0 1264 posted 12 years ago by tomle123
In wordpress, if you want to auto convert all URLs in your string into clickable hyperlinks, you can actually do it using the built-in function make_clickable(). If you need to do that outside of wordpress, you can use the same function. Example...
2 2757 posted 12 years ago by fackz
This script opens an SSL tunnel between a source host and a target host.
1 1216 posted 12 years ago by miceno
This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.
0 1264 posted 12 years ago by throb
This SQL statesment help you to understand which trigger is going to execute first and which one is going to execute last.
0 1223 posted 12 years ago by edwinet
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0 2950 posted 12 years ago by chema_ar
From Java Concurrency in practice
0 1086 posted 12 years ago by fahrenx
A random number generator using a for-loop.
0 1144 posted 12 years ago by karellism
If you're using Rails and want to make this a global function, drop this into your application_controller and call it as a function. Example: # get_string_between("hellomyfriendmoto", 'o', 'm') # > myfriend
0 2336 posted 12 years ago by joshmn
# layout para un panel con scrollbars
0 1266 posted 12 years ago by lecksfrawen
Sql table with country codes coordinates timezone utc utc-dst usefull if you want to have human friendly time zones like America/Los_Angeles
0 5334 posted 12 years ago by decahedronhotmailcom
When I got the font from SymbolSet I was really excited to drop it into my interface but found many of the classes did not work. It looked like an encoding issue (since using the in line versions worked). Upon replacing all 570+ UTF-8 characters with...
0 1415 posted 12 years ago by paulprins
Create Thumbnail of an image in Java
0 1440 posted 12 years ago by roizaig
Java Fast File Copy using NIO
0 1245 posted 12 years ago by roizaig
Connecting to Oracle using Java JDBC
0 1011 posted 12 years ago by roizaig
Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I find I need to restore that file.
0 1191 posted 12 years ago by satie83
This can be used to get arp mac address from a ip address. Remember that MAC addresses are in arp tables (volatile), that's why a ping is done first. But i don't know if timing between ping call and arp call is enought to make sense (of pinging).
0 2317 posted 12 years ago by someguy123
Generate numbered classes and apply variable mixins. Base from [http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/](http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/)
0 1408 posted 12 years ago by BuschFunker
Removes any lines from the file that don't start with "ERROR"
1 1758 posted 12 years ago by gamerzfuse
The CSS text overflow ellipsis solution is perfect for single line truncations. I use this constantly when building mobile or responsive applications.
0 1412 posted 12 years ago by chillyjames
The module allows prestashop store owners to place Facebook comment box under each product / post page where users can post comments using their Facebook ID and this helps in reducing number of spam comments.
0 3412 posted 12 years ago by fmemodules
Call this function to activate a named window.
0 1892 posted 12 years ago by deanhouseholder
This is a AutoHotKey.com script. It runs on Windows and allows you to lock your computer by simply hitting a single key combination and unlock it with a different one. Download the whole script at the url listed.
0 2317 posted 12 years ago by deanhouseholder
If you have a script that must be run as the root user, put this at the top:
1 1450 posted 12 years ago by deanhouseholder
In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties. Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.
0 1271 posted 12 years ago by deanhouseholder
1 ... 42 43 44 45 46 ... 554