Welcome To Snipplr


Everyone's Recent Snippets



1 ... 342 343 344 345 346 ... 554
How to get client ip address with jQuery
2 1444 posted 15 years ago by math89
create two custom fields: one called custom_css and one called custom_js.
1 919 posted 15 years ago by scitrenbaumgmailcom
0 679 posted 15 years ago by fredblogs
This function takes a list of string and sorts them based on their similarity. The percent at which they match can be defined in the second parameter (default 75%).
0 1239 posted 15 years ago by gdvickery
A slug function that support acentuation :)
0 964 posted 15 years ago by hisamu
Example given in the book jQuery Enlightenment. Create your own custom selectors in jQuery and manipulate as usual.
0 1155 posted 15 years ago by 1man
The Query Builder allows you to control the AND and OR relation in your searches Note: 12.0 in the path below is the Outlook version, replace it with the Outlook version you have. Credit for this trick goes to: http://www.msoutlook.info/questio...
1 1031 posted 15 years ago by ramisedhom
Another common task when working with strings is to replace a set of characters with a set of escape sequences. Sometimes the replacement is very easy - you only have to place a backslash (or another character) before every occurrence of an escaped c...
0 1615 posted 15 years ago by quangnd
remove and item or items from array
0 694 posted 15 years ago by edektor
pads a string "2".pad(2, "0"); //02
0 568 posted 15 years ago by edektor
This command will count the number of files in the given directory and sub-directories.
0 1777 posted 15 years ago by gdvickery
If you're writing a preference pane and you'd like to exit back to the main System Preferences view, just use this code.
1 1408 posted 15 years ago by Carter
Credit: http://pragmatig.wordpress.com/2009/04/14/recursive-symbolize_keys/
0 909 posted 15 years ago by nate63179
I wrote this really quick and dirty script to paginate a very large chunk of text. A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs. At the end of the d...
0 916 posted 15 years ago by aristoworks
Very quick CSS addon to create a checkerboard background color "grid". Not compatible with Internet Explorer (until they start accepting better CSS selectors).
1 1690 posted 15 years ago by cryode
Also we can use HTTP_ACCEPT
0 878 posted 15 years ago by kossmoss
Basic skeleton for a plugin. Contains an example to show where code needs to go.
2 874 posted 15 years ago by ira
0 1007 posted 15 years ago by unravelme1
An easy way to hide your email from spam bots.
4 1432 posted 15 years ago by fackz
This is based upon a debian guide, it seems to work well for ubuntu as well, all these steps can be performed via remote ssh (no need to access the machine).
0 975 posted 15 years ago by narkisr
I had several vocabularies but wanted to merge them into one. A simple query does this for you. The vocabulary_id where I wanted to merge all the tags into is 3 The vocabulary_id where the tags are to be merged from is 7, 8 and 12
2 1016 posted 15 years ago by berkes
Make (and GMake) ignore spaces in many constructs, making it difficult to use a single space as a search string or a replacement string, for example. This trick works around the problem by assigning the space to a variable named SPACE and using that...
1 1237 posted 15 years ago by michaelaskew
1 ... 342 343 344 345 346 ... 554