Welcome To Snipplr


Everyone's Recent Snippets



1 ... 408 409 410 411 412 ... 553
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4 1326 posted 16 years ago by danielfilho
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1 1704 posted 16 years ago by rocktronica
If you leave out the "paged" parameter, the same results are queried and shown on each pagination. Of course, you'll want to change the "3" to whichever category you'll want to exclude.
3 1750 posted 16 years ago by rocktronica
Download all tutorial pages of html format recursively. Ex: http://www.moraware.com/help/ Get the url of tree frame (left), use it in wget. Have fun :)
0 1306 posted 16 years ago by abhiomkar
I was asked to add Recaptcha' to an already existing form. I didn't want to interfere with the code so I decided to search for some sort of AJAX solution. Here's my implementation of DarkSideOfTheCarton.com. This form needs to have a form with <fo...
1 2327 posted 16 years ago by chrisaiv
like array_key_exists but accepts an array of key values to check
0 967 posted 16 years ago by iloveitaly
this function processes a URL that 'should' be a full url (i.e. http://something.com/dfsdfs/) and makes sure it contains http:// for easy inclusion as a link into a href attribute
0 1102 posted 16 years ago by iloveitaly
2 1842 posted 16 years ago by iloveitaly
2 1766 posted 16 years ago by iloveitaly
I did write this snippet, I found it somewhere on the internet (I think I found it in a .bash_profile file in [dotfiles.org](http://www.dotfiles.org/) Paste this code at the end of your .bash_profile file and the use it instead of man if you want...
0 1087 posted 16 years ago by AzizLight
К этому моменту у вас уже должно быть достаточно знаний, чтобы сериализовать объект. Но как работает этот механизм? Алгоритм сериализаци...
0 1050 posted 16 years ago by beresovskiy
/libraries/joomla/html/html/behavior.php ~line 108
0 1087 posted 16 years ago by nico65
0 1205 posted 16 years ago by beresovskiy
[Google's "AJAX Libraries API"](http://code.google.com/apis/ajaxlibs/) is great and all, but can slow things down if you're doing a lot of refreshing/cache clearing while debugging. Here's a neat trick: stuff something like this in the `<head>` of yo...
1 1673 posted 16 years ago by jdbartlett
1 1713 posted 16 years ago by gfazioli
Assign methods to a Function prototype when you intend to create instances of the type of object. Use object literals when you just need a container for functions.
0 1574 posted 16 years ago by segdeha
More of a setQueryString
0 1199 posted 16 years ago by iloveitaly
0 1116 posted 16 years ago by bhubbard
0 1143 posted 16 years ago by bhubbard
0 1131 posted 16 years ago by sinecera
When you have a URL like this http://mysite/newsletters/index/2007 The find('first') method adds the 2007 value as ID parameter WTF!?
0 1152 posted 16 years ago by sveggiani
1 ... 408 409 410 411 412 ... 553