Welcome To Snipplr


Everyone's Recent Snippets



1 ... 385 386 387 388 389 ... 553
This function converts file size in bytes to the larger units. You can add bigger values like exa-, zetta-, yotta- bytes.
0 1191 posted 16 years ago by kirik
I made this script to count the days until a birthday, the birthdays are stored in mysql with the year intact YYYY-MM-DD, so this function strips the first 4 chars, and adds the current year, if the date has already passed it adds the next year and c...
9 2707 posted 16 years ago by jcroom
An example solution for the 'insert-checkin-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589 It generates a "pretty" check in notice to be emailed, and also generates a line you can cut/pa...
0 3307 posted 16 years ago by bigfaceworm
An example solution for the 'insert-code-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
1 3277 posted 16 years ago by bigfaceworm
An answer to the 'cycle-special-files exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
0 3439 posted 16 years ago by bigfaceworm
Answer to one of the examples here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
0 3457 posted 16 years ago by bigfaceworm
Used to make sure the server log dose not fill up the hd.
2 1336 posted 16 years ago by mushookies
Make sure you change the variable v_ga_track near the end of the script.
0 1155 posted 16 years ago by chrisjlee
0 1055 posted 16 years ago by jonniespratley
0 1046 posted 16 years ago by jonniespratley
1 1154 posted 16 years ago by jonniespratley
http://code.google.com/p/jquery-jtwitter/ for examples.
3 1258 posted 16 years ago by jonniespratley
http://code.google.com/p/jquery-jtwitter/ for examples.
2 1529 posted 16 years ago by jonniespratley
for checking the cmdargs
0 1245 posted 16 years ago by tandouri
for cmdparsing
0 1441 posted 16 years ago by tandouri
Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.ie
2 1552 posted 16 years ago by jessibird
1 967 posted 16 years ago by radarseven
I recently found the need to run multiple CodeIgniter applications inside of a single codebase for development & test purposes. So, I rewrote a few lines of the primary index file (/index.php) to automatically route URLs like subdomain.domain.com to...
3 1512 posted 16 years ago by brettbergeron
Detect if an object exists in an array or detect existance of a key in an object
1 1111 posted 16 years ago by quickredfox
File.Basename - A library that provides unix-like tools 'dirname' and 'basename'
0 972 posted 16 years ago by quickredfox
Remedial Javascript As Proposed by Douglas Crockford (http://javascript.crockford.com/remedial.html)
0 1043 posted 16 years ago by quickredfox
--
0 1209 posted 16 years ago by nico65
0 978 posted 16 years ago by gerhardsletten
Sometimes I want simple tabs without all the packaging of jQuery UI with a theme. This does the job with just jQuery 1.2.6, and should work with later versions.
3 1528 posted 16 years ago by cyberhobo
1 ... 385 386 387 388 389 ... 553