Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Since there is no convenient way to clear the console in irb on windows, we can simple emulate the dos cls function
1
2704
posted 18 years ago by vanne
Excellent Script for opening new windows from links while adhering to modern HTML/XHTML standards. Simple put rel="nofollow" in the anchor and link to the script within the HEAD.
I prefer to remove the text that states the link opens in an externa...
1
1780
posted 18 years ago by jonhenshaw
This code shows you how to load large files using as3. This is good for loading in large files. Flash Player will fire events as the data becomes available.
7
2200
posted 18 years ago by mswallace
Found this code. It is an example of loading and reading different file types with ActionScript 3
5
2098
posted 18 years ago by mswallace
Converts whitespace that spans multiple lines into a single newline, needs improvement
0
1243
posted 18 years ago by plexus
for .bashrc, a function that cd's to a directory and lists the contents it takes ls arguments and a directory. for example, cl goes to home dir and lists contents. cl -l goes to ~/ and long lists contents. and cl -lrt public_html shows the contents o...
0
1152
posted 18 years ago by zingo
Gets an mp3 player to play mp3s which contain all the phrases given as arguments. Locate is much faster than xmms' library, usually in split a second.
This is very handy, when you install a command-line into the wm panel.
Creates files /locate.0, /...
1
1294
posted 18 years ago by Adek336
good for parsing a message for urls so you can process them for character length when displayed on screen
3
1310
posted 18 years ago by hdotnet
I use this to test if my internet connection is up, I run it from quicksilver, it's much faster for me than opening up a terminal.
0
1203
posted 18 years ago by dbug13