Welcome To Snipplr


Everyone's Recent Snippets



1 ... 391 392 393 394 395 ... 554
Determines whether or not the page has been requested directly, or through AJAX. This can allow for combining a page and related AJAX responses within the same script.
1 1133 posted 15 years ago by Wilco
Convert a coordinate (x,y) into the index for a 1D array. For example, the coordinate (3,1) would be at array index 8 if there are 5 columns. Assumption: Arrays start at 0.
0 1299 posted 15 years ago by helloworlder
count files in a given dir
2 975 posted 15 years ago by fackz
This slide show was created by Jon Raasch @ JonRaasch.com. Just images. Look for Slide show #2 for a slide show using DIVs. hamiltopia_jquerySlideshow2
3 1493 posted 15 years ago by thehamilton
Simple jQuery Slideshow from JonRaasch.com
1 1122 posted 15 years ago by thehamilton
HTML/CSS Template - HTML 4 Transitional
0 1193 posted 15 years ago by thehamilton
1 910 posted 15 years ago by benedikt
0 700 posted 15 years ago by benedikt
0 938 posted 15 years ago by deepsoul
2 871 posted 15 years ago by iTony
1 1125 posted 15 years ago by Meander365
das plugin muss über das Temp verzeichnis installiert werden siehlink
0 751 posted 15 years ago by nico65
To prevent multiple submit from sending more than one request, bind the submit event and store a "disabledOnSubmit" data. Next time the event "submit" will be fire, the following jQuery code will return false. All submit buttons are also disabled (...
9 1308 posted 15 years ago by dalexandre
Slightly more efficient than "as.numeric(as.character(f))"
0 1065 posted 15 years ago by fonnesbeck
Converts dates in Numbers to SQLite format.
0 995 posted 15 years ago by fonnesbeck
sed is required because hg status returns paths with \ (backslash) instead of / (slash). I'm using the Windows version of Mercurial, in a linux version you can omit the sed part.
0 878 posted 15 years ago by geekiuscaesar
this function formats a web address for use in a link.<br> echo formatWebAddress("google.com");<br> http://www.google.com/
1 862 posted 15 years ago by jlvallelonga
0 867 posted 15 years ago by terrencewood
Probably not the most elegant solution, but it works. Needed this for a capistrano deploy task which shows the most recent tagged releases in my repository. Very bare bones, and needs tweaking if your versions are not in X.X.X.X format.
1 1085 posted 15 years ago by bananastalktome
Use this to quickly clean-up a file which has opening braces on a new line, a particular annoyance of mine.
1 937 posted 15 years ago by Zenithus
0 681 posted 15 years ago by radarseven
Doesn't work in IE6, so use this to enhance sites rather than use thenm for required information. Very handy for adding a PDF icon behind a link. Make icons very small (16px x 16px) and with transparent space on left and top to make it look more al...
4 869 posted 15 years ago by carriegates
Displaying values as hex in a PropertyGrid by using a TypeConverter class. The TypeConverter class is assigned as a property to the PropertyGrid's data element. Consider improving by making the UInt32HexTypeConverter a generic/template as in HexTy...
0 1845 posted 15 years ago by jimfred
Sometimes you click a link like faq.html#item5 and, after the browser jumps you to the anchor, you have trouble spotting the item you're looking for. anchorAway is a little function that helps you call a function on anchored items, maybe something li...
0 852 posted 15 years ago by dougunderscorenelson
0 732 posted 15 years ago by laurenceosx
This is one of my favs to use and reuse. Essentially, we make a select box on what is in the table filled values/labels. Download the ISO countries list to make a country table and Bam! with this function you got a country select box... Also grea...
1 852 posted 15 years ago by brownrl
1 ... 391 392 393 394 395 ... 554