Welcome To Snipplr


Everyone's Recent Snippets



1 ... 42 43 44 45 46 ... 554
Leading and Trailing Whitespace
0 2418 posted 11 years ago by Pavonz
Method to Check if an int is a Prime Number
0 547 posted 11 years ago by jholderman
Get obj props using java.beans.Introspector.getBeanInfo()
0 832 posted 11 years ago by laurenceosx
0 576 posted 11 years ago by phl
filter out by category ID in Magento
0 710 posted 11 years ago by tomle123
append this to switch to different Stores in Magento
0 651 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 1734 posted 11 years ago by fackz
This script opens an SSL tunnel between a source host and a target host.
1 703 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 701 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 731 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 2051 posted 11 years ago by chema_ar
From Java Concurrency in practice
0 641 posted 11 years ago by fahrenx
A random number generator using a for-loop.
0 660 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 1190 posted 11 years ago by joshmn
# layout para un panel con scrollbars
0 636 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 4200 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 906 posted 11 years ago by paulprins
Create Thumbnail of an image in Java
0 676 posted 11 years ago by roizaig
Java Fast File Copy using NIO
0 746 posted 11 years ago by roizaig
Connecting to Oracle using Java JDBC
0 542 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 694 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 1422 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 740 posted 11 years ago by BuschFunker
Removes any lines from the file that don't start with "ERROR"
1 677 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 729 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 892 posted 11 years ago by fmemodules
Call this function to activate a named window.
0 755 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 1024 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 884 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 733 posted 11 years ago by deanhouseholder
1 ... 42 43 44 45 46 ... 554