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
979
posted 13 years ago by djmosc
Checks for image files in directory and creates a XML file of the contents
0
973
posted 13 years ago by Don_Jarmo
accessing getdev action of home controller which returns jsonresult
1
955
posted 13 years ago by root_hacker
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0
1083
posted 13 years ago by inflightatnight
https://github.com/zenorocha/jquery-boilerplate/blob/master/jquery.boilerplate.min.js
0
732
posted 13 years ago by lawlesscreation
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0
821
posted 13 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
778
posted 13 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0
826
posted 13 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
841
posted 13 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
799
posted 13 years ago by binaryadder