Welcome To Snipplr
Everyone's Recent Snippets Tagged class
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Very simple to use Web Poll Class, simply create a new instance, set the question and set the answers. You still have to set up your database yourself
1
812
posted 12 years ago by RobertHegeraad
Simple class to retrieve an ID using a URL of the Youtube
0
1171
posted 12 years ago by leandroperes
This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS.
If you require multiple classes on your bo...
3
1056
posted 12 years ago by iridium
simple as3 class that help you to avoid repeat add MouseEvent each time
0
1007
posted 12 years ago by mgraph
Because there is no way to use object extenders in vb.net here is an example of how you can get similar functionality. See the C# example for further info.
0
1041
posted 13 years ago by bryanlyman
Es ist auch möglich, ausschließlich Elemente zu selektieren, die mehrere Klassennamen aufweisen. Notieren Sie in diesem Fall beide Klassenselektoren direkt hintereinander.
0
861
posted 13 years ago by simondiercks
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0
1176
posted 13 years ago by TimoZachi
Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
0
1165
posted 13 years ago by Huskie
These two classes demonstrate how to create an external font SWF that contains embedded fonts, and how to then load that external font SWF and access and use the fonts inside it.
0
1374
posted 13 years ago by adrianparr
All credit for this class goes to Ben Kanizay (http://bk4d.com)
0
892
posted 13 years ago by adrianparr
This function follows the following naming conventions: Give your checkboxes ID tags of "[contenttitle]trigger", where [contenttitle] is whatever you like. Then, give your hide-able content classes that match, without the "trigger". This function wil...
0
601
posted 13 years ago by gellpak
.net 3.0+, To create stability in your code, you must check all inputs into a method to make sure they are valid . Often people overlook this step because of laziness, or because they aren't convinced that exceptions and assertions are actually in pl...
0
872
posted 13 years ago by bryanlyman
Just a simple script showing how to make calls to an Email script.
0
669
posted 13 years ago by JonnySnip3r
"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope."
When inheritanc...
0
926
posted 13 years ago by coprolit