Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Just insert any category id into the argument and it will return the top level category object.
e.g: print_r( get_top_level_category('INSERT CATEGORY ID HERE') );
0
2007
posted 14 years ago by djmosc
Checks for image files in directory and creates a XML file of the contents
0
2686
posted 14 years ago by Don_Jarmo
accessing getdev action of home controller which returns jsonresult
1
2648
posted 14 years ago by root_hacker
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0
2183
posted 14 years ago by inflightatnight
https://github.com/zenorocha/jquery-boilerplate/blob/master/jquery.boilerplate.min.js
0
1462
posted 14 years ago by lawlesscreation
Redirecionamento Like/Dislike para Fanpages do Facebook.
0
1295
posted 14 years ago by thiagotargino
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0
1534
posted 14 years ago by jbernus
two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)
0
1458
posted 14 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0
1593
posted 14 years ago by ultranaut
tar is usually used for achiving applications, but what we are going to do in this case is tar it then pipe it over an ssh connection. tar handles large file trees quite well and preserves all file permissions, etc, including those UNIX systems which...
0
1681
posted 14 years ago by wnasich
Strings are sorted in ascending order.
This was created by me in order to thwart Dr. McCloskey's evil ways of forcing CS majors to manually alphabetize lists of names and months.
0
1479
posted 14 years ago by binaryadder
This is a little PHP class that permits to start quickly the creation of a webpage.
When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesh...
0
1316
posted 14 years ago by claudiowebdesign