Welcome To Snipplr
Everyone's Recent Snippets
- 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
1652
posted 14 years ago by djmosc
Checks for image files in directory and creates a XML file of the contents
0
2318
posted 14 years ago by Don_Jarmo
accessing getdev action of home controller which returns jsonresult
1
2287
posted 14 years ago by root_hacker
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0
1766
posted 14 years ago by inflightatnight
https://github.com/zenorocha/jquery-boilerplate/blob/master/jquery.boilerplate.min.js
0
1113
posted 14 years ago by lawlesscreation
Redirecionamento Like/Dislike para Fanpages do Facebook.
0
1046
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
1240
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
1151
posted 14 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0
1246
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
1314
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
1156
posted 14 years ago by binaryadder