Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Can be used to generate a random code for an online voucher. You just need to set VOUCHER_CODE_LENGTH in your environment.rb or similar.
1
1460
posted 16 years ago by jordanbrock
jQuery client-side form validation for the Radiant CMS mailer extension.
Requires jQuery 1.2.6+
Each required field needs a class of "required" assigned to the input tag.
0
1509
posted 16 years ago by bcalloway
Sometimes I want a complete path to a file in the current working directory to make error messages clearer. The URL has alternate approaches.
0
1592
posted 16 years ago by jimfred
-s 86x60 Defines the dimension of the thumbnail
-ss 4 Generate a thumbnail from position 00:00:04 (4 seconds)
0
1233
posted 16 years ago by smoover
Me trying to not be a noob in python.
Yes, I know my noob is probably showing.
0
1171
posted 16 years ago by jakswa
Learn how to retrieve a specific url's total number of Diggs using JQuery, ASP and the Digg API.
2
2944
posted 16 years ago by neal_grosskopf
You can use this as a starting point when integrating XStandard in your CMS.
There are 3 licensing options for XStandard: free Lite Version, Open Source CMS Partner License & Pro Version. (btw: XStandard produces 100% valid markup against XHTML 1.1...
1
1553
posted 16 years ago by iroybot
Load jQuery into WordPress generated pages, the wp_enqueue_script function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).
2
1455
posted 16 years ago by selfmadepsyche
This is the custom layout template i use for the CleanCSS website, very handy!
0
1479
posted 16 years ago by 1man
Use this when you want to serve a domain from the document root of another domain on the same box. Along with this config, you will want to replace the httpdocs directory with a symlink to the other domains doc root. (Don't forget to change ownership...
1
1321
posted 16 years ago by zachharkey
this function tells you whether or not the passed value is in the passed array
1
1635
posted 16 years ago by jlvallelonga
this funciton returns an XMLHttpRequest object for use in ajax pages
1
1670
posted 16 years ago by jlvallelonga
get_the_author_email outputs the post author’s email and the “80†is the size of the avatar image in pixels & it has to be in the loop!
0
2105
posted 16 years ago by selfmadepsyche