Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Learn how to emulate ASP.NET's AppendFormat method in Javascript. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
1968
posted 17 years ago by neal_grosskopf
Learn how to emulate ASP.NET's AppendFormat method in Classic ASP. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
2218
posted 17 years ago by neal_grosskopf
Using this loop variation you can style differently the first and the last post of a loop, or whatever post you like, as lond as you add a new elseif with the number of the post you desire.
5
2542
posted 17 years ago by crs
You must have already setup your /etc/init.d/some_binary file and it should have the chkconfig line in it that specifies the on/off run levels and start/stop priorities.
0
2032
posted 17 years ago by jturmel
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
1748
posted 17 years ago by DrewDouglass
All credit for this snippet goes to Roshan, link is given above.
4
2669
posted 17 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
2367
posted 17 years ago by DrewDouglass
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0
1544
posted 17 years ago by DrewDouglass
All credit for this code goes to the all mighty Fou-Lou of codingforums.com (link given).
0
3275
posted 17 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
1992
posted 17 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
2007
posted 17 years ago by iloveitaly