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 1208 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 1597 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 1647 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 1199 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 2157 posted 16 years ago by chrisaiv
like array_key_exists but accepts an array of key values to check
0 891 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 1038 posted 16 years ago by iloveitaly
2 1727 posted 16 years ago by iloveitaly
2 1673 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 1014 posted 16 years ago by AzizLight
К этому моменту у вас уже должно быть достаточно знаний, чтобы сериализовать объект. Но как работает этот механизм? Алгоритм сериализаци...
0 964 posted 16 years ago by beresovskiy
/libraries/joomla/html/html/behavior.php ~line 108
0 995 posted 16 years ago by nico65
0 1137 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 1535 posted 16 years ago by jdbartlett
1 1604 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 1460 posted 16 years ago by segdeha
More of a setQueryString
0 1110 posted 16 years ago by iloveitaly
0 1029 posted 16 years ago by bhubbard
0 1084 posted 16 years ago by bhubbard
0 1046 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 1068 posted 16 years ago by sveggiani
1 ... 408 409 410 411 412 ... 553