Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1071
posted 17 years ago by wizard04
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
3089
posted 17 years ago by dom111
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1
1479
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
1641
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
1276
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
1530
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
2044
posted 17 years ago by chombee
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
3233
posted 17 years ago by zingo
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/
9
2704
posted 17 years ago by chrisaiv
http://us.php.net/manual/en/language.oop5.autoload.php#82614
2
1628
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
1528
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
1622
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
3305
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
1523
posted 17 years ago by mountainash
https://www.chrisjmendez.com/2008/06/11/show-hidden-folders-and-files-in-os-x-leopard/
2
1784
posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/11/how-to-use-ems-when-youre-already-comfortable-with-pixels/
2
1486
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
1825
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
1212
posted 17 years ago by Sn0opy
https://www.chrisjmendez.com/2008/06/06/as3-regular-expression-basics/
12
2574
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
1947
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
2118
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
1538
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
1783
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
1685
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
1800
posted 17 years ago by AndrewVos
Redirecciona una petición HTTP de Apache a una URL, salvo los que tenga una IP determinada.
0
1343
posted 17 years ago by estebant