Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this code loads in the necessary actionscript classes for dealing with FLV [flash video] and metadata [in this case cuepoints]. this needs to be loaded right at the beginning of your code, so flash knows how to handle cuepoints embedded in FLV [flas...
0
1091
posted 15 years ago by stiobhart
basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
0
1115
posted 15 years ago by stiobhart
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
996
posted 15 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
1093
posted 15 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
1066
posted 15 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
922
posted 15 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
1743
posted 15 years ago by chrisaiv
like array_key_exists but accepts an array of key values to check
0
671
posted 15 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
787
posted 15 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
776
posted 15 years ago by AzizLight
К Ñтому моменту у Ð²Ð°Ñ ÑƒÐ¶Ðµ должно быть доÑтаточно знаний, чтобы Ñериализовать объект. Ðо как работает Ñтот механизм? Ðлгоритм Ñериализаци...
0
711
posted 15 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
1031
posted 15 years ago by jdbartlett
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
1082
posted 15 years ago by segdeha