Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 436 437 438 439 440 ... 552
Here’s a snippet that can help you to remove a non-empty directory from the server. It’s a recursive function that deletes the directory with its files, folders and sub-folders.
2 2159 posted 17 years ago by fackz
Put this in the template.php within your template directory.
7 2365 posted 17 years ago by troynt
Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.
1 2944 posted 17 years ago by 1man
This gets me every time. Why doesn't my blog work?! Oh yeah, that's why.
0 1535 posted 17 years ago by jaspertandy
2 1949 posted 17 years ago by nhutto
For expression engine, I placed with with the main set of .htaccess rules in the root
1 2001 posted 17 years ago by joeymarchy
0 1635 posted 17 years ago by joeymarchy
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
2 3053 posted 17 years ago by fackz
To use href.in API to generate a short URL. using php curl
1 1802 posted 17 years ago by nerdsane
3 2249 posted 17 years ago by troynt
Figure out if the string possesses only hexadecimal characters in the string. If not, fail. Remember, white spaces are not hexadecimal, so make sure you trim() your strings before you send it in or explode your string.
0 2162 posted 17 years ago by duniyadnd
cross-browser document.getElementById, should be on top of code.
0 1336 posted 17 years ago by sarfraznawaz2005
your database needs id, bezeichner and parent fields
1 1730 posted 17 years ago by antpaw
Extremely simple... just pass in the string you want to ellipse, and the position you want to do it at. The code takes care of the rest.
2 2070 posted 17 years ago by cessnajumpin
This function takes a string and deletes the last comma in it. It is meant for strings with a trailing comma such as "13, 24, 15, "
1 2436 posted 17 years ago by jlvallelonga
Learn how to style the HTML code element with CSS using CSS counters. CSS counters are the CSS equivalent to variables. In my tutorial I use CSS counters to emulate line numbers for my code block.
2 2432 posted 17 years ago by neal_grosskopf
The attached article is also actually very funny.
0 1706 posted 17 years ago by monkey103
0 1692 posted 17 years ago by davebowker
0 1808 posted 17 years ago by davebowker
Found this in some code I've been maintaining/expanding. Quite clever. Picture an array of bytes in binary 00000111 11100000 00000000 00000000 Now picture an Int32 in Binary 00000000000000000000000000000000 To grab a Little Endian I...
0 3385 posted 17 years ago by rengber
[See also: http://snipplr.com/edit/45271] Oops, didn't mean to commit that? Undo it easily:
0 1847 posted 17 years ago by cczona
To display a list of your 10 most commented posts from 2008, simply paste the following code on your blog sidebar, or anywhere on your theme.
1 1666 posted 17 years ago by selfmadepsyche
1 ... 436 437 438 439 440 ... 552