Welcome To Snipplr


Everyone's Recent Snippets



1 ... 42 43 44 45 46 ... 554
Leading and Trailing Whitespace
0 2658 posted 11 years ago by Pavonz
Method to Check if an int is a Prime Number
0 725 posted 11 years ago by jholderman
Get obj props using java.beans.Introspector.getBeanInfo()
0 1041 posted 11 years ago by laurenceosx
0 705 posted 11 years ago by phl
filter out by category ID in Magento
0 887 posted 11 years ago by tomle123
append this to switch to different Stores in Magento
0 827 posted 11 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 1997 posted 11 years ago by fackz
This script opens an SSL tunnel between a source host and a target host.
1 865 posted 11 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 864 posted 11 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 921 posted 11 years ago by edwinet
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0 2388 posted 11 years ago by chema_ar
From Java Concurrency in practice
0 811 posted 11 years ago by fahrenx
A random number generator using a for-loop.
0 821 posted 11 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 1405 posted 11 years ago by joshmn
# layout para un panel con scrollbars
0 806 posted 11 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 4595 posted 11 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 1081 posted 11 years ago by paulprins
Create Thumbnail of an image in Java
0 877 posted 11 years ago by roizaig
Java Fast File Copy using NIO
0 909 posted 11 years ago by roizaig
Connecting to Oracle using Java JDBC
0 676 posted 11 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 873 posted 11 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 1671 posted 11 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 943 posted 11 years ago by BuschFunker
Removes any lines from the file that don't start with "ERROR"
1 856 posted 11 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 944 posted 11 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 2721 posted 11 years ago by fmemodules
Call this function to activate a named window.
0 955 posted 11 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 1275 posted 11 years ago by deanhouseholder
If you have a script that must be run as the root user, put this at the top:
1 1076 posted 11 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 915 posted 11 years ago by deanhouseholder
1 ... 42 43 44 45 46 ... 554