Welcome To Snipplr


Everyone's Recent Snippets



1 ... 397 398 399 400 401 ... 553
3 1881 posted 16 years ago by Shifter
Takes advantage of the SPL. Much easier and maintainable than the previous revisions. Haven't done any benchmarks yet but I imagine it is much faster. "If you want to omit directories, remove the RecursiveIteratorIterator::SELF_FIRST part."
3 1412 posted 16 years ago by DrewDouglass
All credit for this snippet goes to Roshan, link is given above.
4 2278 posted 16 years ago by DrewDouglass
More info found in the link above, basically, you can replace the $config['base_url'] to the snippet below and you no longer need to set the base url. Useful for making your application more portable.
7 2063 posted 16 years ago by DrewDouglass
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0 1267 posted 16 years ago by DrewDouglass
All credit for this code goes to the all mighty Fou-Lou of codingforums.com (link given).
0 2937 posted 16 years ago by DrewDouglass
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0 1687 posted 16 years ago by iloveitaly
A custom compression script I use for auto compression and gzip compression of my css & files. Also allows for 'debug' mode (uncompressed). You simply include the core.css & core.js in your <head>
0 1715 posted 16 years ago by iloveitaly
2 1667 posted 16 years ago by blackf0rk
count(*args) Count operates using three different approaches. Count all: By not passing any parameters to count, it will return a count of all the rows for the model. Count using column: By passing a column name to count, it will return a count of...
1 1615 posted 16 years ago by deschism
0 1468 posted 16 years ago by inkdeep
0 1280 posted 16 years ago by voyeg3r
0 1026 posted 16 years ago by iloveitaly
0 1252 posted 16 years ago by endorfin
0 1490 posted 16 years ago by smoover
Laat 3 seconden de load div zien met daarin de loader gif animatie. het element met id prijs wordt 3 seconden verborgen.
0 1238 posted 16 years ago by epco
Assuming you have a set of svn project folders inside a parent (only folders in parent) you can do a simple backtick `ls` to get the folder names for svn...
0 1722 posted 16 years ago by jasonm23
2 1519 posted 16 years ago by justinseiter
Easily Modify and Layout html with classes that on the fly create margins
0 1554 posted 16 years ago by chrisjlee
1 1458 posted 16 years ago by paulbooker
0 1273 posted 16 years ago by quickredfox
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1 1938 posted 16 years ago by iloveitaly
The following will cause the "comments closed" line to not display on both posts and pages.
2 3897 posted 16 years ago by fabi
1 ... 397 398 399 400 401 ... 553