Welcome To Snipplr


Everyone's Recent Snippets Tagged class



For .net 2.0+ The one limitation to enumerations is revealed when you try to reverse lookup an enumeration value using Enum.Parse(). The parse function will return an inconsistent enum object if ever there are two or more enumerations with the same...
0 506 posted 11 years ago by bryanlyman
A very simple class that quickly gets you interacting with a database, as long as you know sql :P.
1 698 posted 12 years ago by r3morse
bash 3-line shell script for visualization of java class dependencies with graphviz. Please see my blog post for details and leave comments there.
0 318 posted 12 years ago by benjamin
bash 3-line shell script for visualization of c++ class dependencies with graphviz. Please see my blog post for details and leave comments there.
0 341 posted 12 years ago by benjamin
I rewrote [this snippet](http://snipplr.com/view/15402/php-password-generator/). Usage: $password1 = new Password; $password2 = new Password; echo '<p>' . $password1->generate() . '</p>'; echo '<p>' . $password2->generate(array('leng...
1 464 posted 12 years ago by AzizLight
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1 413 posted 12 years ago by joelhaus
0 283 posted 12 years ago by alexaivars
2 361 posted 12 years ago by JREAM
I notice a lot of addClass/removeClass.. thought maybe I'd post an example on how to simplify that....
0 586 posted 12 years ago by quickredfox
A simple class layout template that I always use to get me started. Nothing fancy. Just your basic structure.
1 357 posted 12 years ago by StrawMan
1 352 posted 12 years ago by iTony
Here is the MXML source code for a simple FLEX based soundboard. You can download this Adobe AIR application at http://www.ifartair.com/
0 463 posted 12 years ago by ericfickes
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0 250 posted 12 years ago by DrewDouglass
0 271 posted 12 years ago by martin_rusev
1 307 posted 12 years ago by vali29
- opacity: 0.5; Funktioniert in den neuesten Versionen von Firefox, Safari und Opera - filter:alpha(opacity=50); für den Internet Explorer. -moz-opacity:0.5; für ältere Versionen der Mozilla Browser wie beispielsweise Netscape Navigator, Mozilla...
2 312 posted 12 years ago by skrippendorf
added ability to use effects and some other improvements.
0 263 posted 12 years ago by pdswan
Easily create a SINGLE USE ONLY (Singleton) Class Object with this template.
1 362 posted 12 years ago by allnatural
From this article, Martin "mpot" Pot mention: " The above CSS definition is defining a style called noprint, and will only be applied to printed content. Setting the display property to none means any content using this CSS style will not be displ...
0 484 posted 12 years ago by HubertGaulin
Skor PHP Template class can assign individual variable values or arrays with several variable values. A separate sub-class extends the base class to support delimited template section replacements.
0 286 posted 12 years ago by Agundur
Just a bare-bones DocumentClass template I use.
1 327 posted 12 years ago by allnatural
Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.
0 435 posted 12 years ago by Dorgendubal
That's not complete enough! but as useful as a knife :/
8 618 posted 12 years ago by lajevardi
0 279 posted 12 years ago by davebowker