Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a collection of useful static initializers of Java arrays, lists and maps.
0
903
posted 17 years ago by narkisr
Effbot's page on the os module: http://effbot.org/librarybook/os.htm
The os module has lots of methods for dealing with files and directories: http://docs.python.org/lib/os-file-dir.html
The shutil module: http://docs.python.org/lib/module-shut...
0
1714
posted 17 years ago by chombee
This is a simple base for an approximate search application. You can currently use this to do search's but it, is not very sophisticated, right now anything that is as difference in characters base on the threshold will show up in the result, so with...
3
1280
posted 17 years ago by Cory
A simple way to display a block-level-element over a flash document.
2
1200
posted 17 years ago by stil72
Useful functions to get around browser incompatibilities when working with stylesheets.
If you find any errors, please leave a comment.
0
1194
posted 17 years ago by wizard04
Use sample:
var inputTxt = getElementsByAttr('input', 'type', 'text');
1
1081
posted 17 years ago by kcmr
Determines if a given element is visible, by checking a variety of things. Will work for CSS or inline style declarations of visible:hidden or display: none. Will check if it's inside of an invisible element, as well.
3
1668
posted 17 years ago by TALlama
'port install ruby' sometimes results in malloc errors near the final phase (just after destroot completes). It appears that macports may be out of memory while installing documentation.
0
1051
posted 17 years ago by cczona
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value.
The former code (http://snipplr.com/view/3448/kill-app-after-expire-date/) was not internationalised an...
5
2731
posted 17 years ago by zingo
The “2>&1″ bit tells to pipe the standard error to the standard output. Otherwise the standard error may not be outputted by the system and you won’t have a way to troubleshoot your script.
2
1608
posted 17 years ago by jdstraughan
1. Allows encryption between client and server
2. Bypasses filtered port, if any on the standard port for the given service.
1
1348
posted 17 years ago by iblis
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0
1197
posted 17 years ago by iblis
Browser Support: IE5.5, IE6, IE7, Firefox 1-3, Mozilla, Opera 8-9.5, Safari(Win,Mac), Knoqueror(Linux).
Use: Any Tag.
5
1938
posted 17 years ago by Ashung