Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example code would remove all files/folders recursively starting from the current folder named file_name
0
1452
posted 17 years ago by jturmel
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
2
1993
posted 17 years ago by Juanje
Sorry, the comentaries are in spanish. I will translate them some day.
The examples results are indicated with:
# -> [result]
Usually is the "echo" result
0
1133
posted 17 years ago by Juanje
Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
2
2132
posted 17 years ago by distinctdev
This snippet shows how to serialize action script object to strings, the serialization method is AMF based, note also that each object must meet three basic rules in order to be serialized properly:
¨1. The constructor must take no arguments...
1
1962
posted 17 years ago by narkisr
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block...
0
1393
posted 17 years ago by shrop
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0
1642
posted 17 years ago by zingo
This can be used as a general function to get the value stored in any of the possible input sources.
use
0
1429
posted 17 years ago by luizlopes
Find deprecated elements and attributes using CSS. Simply add the CSS below to the end of your style sheet and it will highlight bad code.
5
1468
posted 17 years ago by visuallyspun