Welcome To Snipplr


You searched for: http

Everyone's Recent Snippets



When there's a URL on a page that's not a link, just highlight it and click this bookmarklet. The URL will open in a new window. If there are multiple selections (e.g., if you've selected something in each of two frames on the page), they will eac...
1 1055 posted 16 years ago by wizard04
Select some text, click the bookmarklet, and the definition(s) will open up in [Ninjawords](http://www.ninjawords.com). [Ninjawords](javascript:(function(){function%20t(f){try{if(f.getSelection)return%20f.getSelection().toString(&#...
0 792 posted 16 years ago by wizard04
uri: http://organic.qualitywordpress.com/
0 889 posted 16 years ago by ChaosKaizer
Been wanting to made one of these for a while and finally I got round to it. For some examples please visit the post: http://www.dom111.co.uk/blog/coding/db/8 Any comments suggestions appreciated. CreativeCommons ShareAlike
3 2023 posted 17 years ago by dom111
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1 1025 posted 17 years ago by narkisr
1. Make sure the following environment variable is set: WinXP: HOME=C:\Documents and Settings\*username* Vista: HOME=C:\Users\*username* 2. Create an .irbrc file in %HOME%: $ cd %HOME% $ touch .irbrc If you don't have...
1 1124 posted 17 years ago by charlesroper
Functions to use the clipboard. Requires a Flash file for non-IE browsers: see [http://javascript.internet.com/forms/clipboard-copy.html](http://javascript.internet.com/forms/clipboard-copy.html) Remember to set `config.Clipboard.pathToFlash` a...
1 891 posted 17 years ago by wizard04
There is no standard for this at all - this just looks for the hooks that exist in IE and gecko-type browsers. See also http://msdn.microsoft.com/en-us/library/ms535926(VS.85).aspx and http://developer.mozilla.org/en/docs/DOM:window.sidebar
3 1109 posted 17 years ago by scarfboy
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 1491 posted 17 years ago by chombee
See also: http://code.google.com/p/undolibrary/
2 1183 posted 17 years ago by gfazioli
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 1493 posted 17 years ago by zingo
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/
9 2037 posted 17 years ago by chrisaiv
http://us.php.net/manual/en/language.oop5.autoload.php#82614
2 955 posted 17 years ago by luizlopes
Python: Private Variables http://docs.python.org/tut/node11.html#SECTION0011600000000000000000 Any identifier of the form __spam (at least two leading underscores, at most one trailing underscore) is textually replaced with _classname__spam, wher...
0 1056 posted 17 years ago by ishikawa
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2 1075 posted 17 years ago by chrisaiv
In summary, IE7 compatibility support looks as follows: IE=7 Display in IE7 Standards mode; Already supported in the IE8 Beta 1 release IE=EmulateIE7 Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode...
3 1552 posted 17 years ago by gbot
I made this simple JavaScript to save me time. I was sick of having to thumb-bash on a tiny keypad or login to the slow Clickatell site and use their clunky interface (nothing it simpler than 2 text boxes and an OK button). You will need an HTTP A...
1 1092 posted 17 years ago by mountainash
https://www.chrisjmendez.com/2008/06/11/show-hidden-folders-and-files-in-os-x-leopard/
2 1178 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/11/how-to-use-ems-when-youre-already-comfortable-with-pixels/
2 1020 posted 17 years ago by chrisaiv
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0 1333 posted 17 years ago by narkisr
Cowthink is an ASCII script for Linux to show text in a bubble over a cows head Picture: http://tinyurl.com/5mupb7 Download: http://www.nog.net/~tony/warez/cowsay.shtml
1 842 posted 17 years ago by Sn0opy
https://www.chrisjmendez.com/2008/06/06/as3-regular-expression-basics/
12 1721 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/04/ruby-open-a-text-file-and-re-write-its-contents-into-a-new-text-file/
1 1306 posted 17 years ago by chrisaiv
This snippet shows how to serialize action script object to strings, the serialization method is AMF based, note also that each object must meet three basic rules in order to be serialized properly: ¨1. The constructor must take no arguments...
1 1433 posted 17 years ago by narkisr
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block...
0 1063 posted 17 years ago by shrop
This function uses the power of regexp to check if some bad word are on the text, also offers the posibility to change those word for something else. Examples:\r\n\r\n$texto = \'fuck off!\';\r\nfiltrado($texto); returns true since a bad word has been...
1 1290 posted 17 years ago by oso96_2000
View to use with the docs at http://drupal.org/node/144725 for creating image gallery using cck, views and thickbox.
3 1139 posted 17 years ago by shrop
Properly escapes the query string, according to http://code.google.com/apis/searchappliance/documentation/46/xml_reference.html#appendix_url_escaping
3 1334 posted 17 years ago by AndrewVos
Redirecciona una petición HTTP de Apache a una URL, salvo los que tenga una IP determinada.
0 914 posted 17 years ago by estebant