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
2329
posted 14 years ago by djmosc
Checks for image files in directory and creates a XML file of the contents
0
3006
posted 14 years ago by Don_Jarmo
accessing getdev action of home controller which returns jsonresult
1
2980
posted 14 years ago by root_hacker
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0
2498
posted 14 years ago by inflightatnight
https://github.com/zenorocha/jquery-boilerplate/blob/master/jquery.boilerplate.min.js
0
1710
posted 14 years ago by lawlesscreation
Redirecionamento Like/Dislike para Fanpages do Facebook.
0
1547
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
1792
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
1710
posted 14 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0
1852
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
2011
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
1753
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
1602
posted 14 years ago by claudiowebdesign
//////////////////////////////////////////////////////////
function debug($ch,$force=false) {
global $debugphp,$iphost,$ch_debug;
$ip=getenv('REMOTE_ADDR');
if ((($debugphp==true)||($force==true))&&(in_array($ip, $iphost))) {...
0
2799
posted 14 years ago by kspal