Welcome To Snipplr


Everyone's Recent Snippets



1 ... 437 438 439 440 441 ... 553
your database needs id, bezeichner and parent fields
1 1390 posted 17 years ago by antpaw
Extremely simple... just pass in the string you want to ellipse, and the position you want to do it at. The code takes care of the rest.
2 1644 posted 17 years ago by cessnajumpin
This function takes a string and deletes the last comma in it. It is meant for strings with a trailing comma such as "13, 24, 15, "
1 2019 posted 17 years ago by jlvallelonga
Learn how to style the HTML code element with CSS using CSS counters. CSS counters are the CSS equivalent to variables. In my tutorial I use CSS counters to emulate line numbers for my code block.
2 2008 posted 17 years ago by neal_grosskopf
The attached article is also actually very funny.
0 1386 posted 17 years ago by monkey103
0 1316 posted 17 years ago by davebowker
0 1381 posted 17 years ago by davebowker
Found this in some code I've been maintaining/expanding. Quite clever. Picture an array of bytes in binary 00000111 11100000 00000000 00000000 Now picture an Int32 in Binary 00000000000000000000000000000000 To grab a Little Endian I...
0 2837 posted 17 years ago by rengber
[See also: http://snipplr.com/edit/45271] Oops, didn't mean to commit that? Undo it easily:
0 1414 posted 17 years ago by cczona
To display a list of your 10 most commented posts from 2008, simply paste the following code on your blog sidebar, or anywhere on your theme.
1 1299 posted 17 years ago by selfmadepsyche
1 1657 posted 17 years ago by vasilije
1 1403 posted 17 years ago by rickfu
This, owner, and delegate: this : as in Java, this refers to the instance of the enclosing class where a Closure is defined owner : the enclosing object (this or a surrounding closure) delegate : by default the same as owner, but changeable. (htt...
1 2003 posted 17 years ago by narkisr
An example of redo statement in Ruby, redo makes an iteration step repeat itself again (http://www.rubyrailways.com/rubys-most-underused-keyword/).
1 1425 posted 17 years ago by narkisr
Open Terminal and enter this command.
1 2310 posted 17 years ago by jonhenshaw
I just wanted to have the argument code as text. It is provided as an image.
2 3078 posted 17 years ago by lexx
This is a bit of jQuery within a PHP function that you can dump into your Thesis custom_functions.php file to hide comments upon page load and add a link to show them.
2 1371 posted 17 years ago by kristarella
This is a basic shell for PayPal IPN. It is by no means a complete solution, but it should provide a good starting point for anyone that wants to work out IPN. Or it can be used as is to do basic IPN.
2 1396 posted 17 years ago by xtheonex
Display simple alert box
6 3079 posted 17 years ago by steve918
Allows you to toggle visibility of the iPhone status bar at the top of the screen that shows the carrier information, network status and time
6 1821 posted 17 years ago by steve918
Instead of simply adding a list of things at the end of the array, you can also pass in a hash and change the question marks to actual named replacements. This can help you keep the order of your arguments straight.
1 1516 posted 17 years ago by sohooo
This is modified from code found here: http://www.meadinkent.co.uk/XLexport-text1.htm and here: http://www.meadinkent.co.uk/XLexport-text2.htm
0 1434 posted 17 years ago by BlueCockatoo
In the content property, the first number is the number of seconds until the refresh, the URL is where the redirect will go.
2 1933 posted 17 years ago by chippper
1 ... 437 438 439 440 441 ... 553