Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The lazy way to generate XHTML-valid width and height attributes for your images. This is incredibly inefficient, though I believe (ref?) that calls to getimagesize() are cached.
2
1516
posted 17 years ago by AdrianShort
I didn't create this but I use it all the time. Just drop it in lib/tasks/fixtures.rake
1
1152
posted 17 years ago by markpercival
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
0
1316
posted 17 years ago by lakedenman
A way to post to twitter from Google AppEngine using urlfetch.
4
1835
posted 17 years ago by sgraber
I use this in addition to the
number_format (http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/)
snippit in SWFUpload to display the size of files a user is preparing to upload.
0
6436
posted 17 years ago by inkdeep
This example shows how to release artifacts into Artifactory by using Buildr, the origin of this code is http://groups.google.com/group/buildr-talk/
1
1100
posted 17 years ago by narkisr
Name the form what ever you like, but make sure that is reflected in the javascript.
0
5756
posted 17 years ago by jachin
Features: Complies to version 2.1 of the vCard specification
Supports the following attributes:
* Name
* Formatted Name
* Phone and fax numbers
* Birthday
* Address
* Address label
* email address
* notes...
6
3341
posted 17 years ago by jonhenshaw