Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet shows how to get access to the underlying log4j logger when using apache commons logging.
0
1633
posted 16 years ago by ff1959
Allows for delay functionality in effects, etc.
$("#navpanel").delay(2000).animate({top:"-250px"}, {easing:"swing"});
2
1992
posted 16 years ago by ninjamuk
Можно выкладывать даже файлы, Ñодержащие кириллицу в названии. Они будет подвергнуты транÑлитерации, пробелы и другие небезопаÑные ÑимÐ...
0
2167
posted 16 years ago by almazom
Not particularly novel, but quite clean. Allows you to put images in any location on the server and saves having to generate thumbnails at upload time.
The URL to this file should be:
`<filename.php>/<request>/<path>`
Valid request types:...
1
1802
posted 16 years ago by Kit
This uses the button's instance name to assign functions. Instead of using a bunch of event listeners, you can use one function to delegate actions according to the button's instance name.
0
1577
posted 16 years ago by MacEvelly
method 'E' (in fact a decorator) catch the execption and return it, so it's possible to use the good old assert statement.
0
1644
posted 16 years ago by manatlan
Takes a number in bytes and returns the number in (KB,MB,GB) for human-readable format.
1
1801
posted 16 years ago by stancox
This is useful if you do not currently have a trunk/branch structure and would like to move everything into a new trunk.
0
4094
posted 16 years ago by jmiller
This shows how we can find objects inside code blocks (aka data sets).
0
2683
posted 16 years ago by chrisaiv