Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 448 449 450 451 452 ... 552
I came across this little snippet... and thought it was rather nice.
0 1835 posted 17 years ago by gembry
This code within your CakePHP controller to include a component.
0 1688 posted 17 years ago by jdbartlett
0 1716 posted 17 years ago by otaqui
Función para usar con el evento onkeydown, que funciona igual en todos los navegadores. Onkeypress devuelve 0 para las teclas especiales en navegadores que no sean Internet Explorer.
0 2102 posted 17 years ago by kcmr
Always always always backup client side validation with server side validation! =D
2 2468 posted 17 years ago by charmcitycoder
0 2058 posted 17 years ago by jachin
Replace all the occurrences of a string with a replacement in the supplied files.
2 2100 posted 17 years ago by sanjivarunsahayamhotmailcom
Search and replacing all instances of some text within Vim
1 2038 posted 17 years ago by sanjivarunsahayamhotmailcom
This helps you stip anything from title. This example is from Symfony homepage.
0 1406 posted 17 years ago by Zver
1 2105 posted 17 years ago by charmcitycoder
$quote -- name of function post_type=page -- remove to query posts orderby=rand -- random order showposts=1 -- limit to 1 post effect -- displays 1 random custom excerpt outside of the loop
1 2166 posted 17 years ago by davebowker
0 1612 posted 17 years ago by Elph
A simple method of clearing the data of a hard drive (writing zeros all over it).
2 2226 posted 17 years ago by narkisr
Basic file system manipulation in Linux (some commands require sudo).
0 1696 posted 17 years ago by narkisr
This snippet is actually tested for SQL Server Compact Edition (CE) 3.5, but it will probably work for other SQL Server editions. Once you have an SQL CE db up and running, you can set the connection string to point to any directory and database by s...
0 3140 posted 17 years ago by pckujawa
Add class external to all target=_blank links
4 2310 posted 17 years ago by gfazioli
Código para proyecto de Arquitectura y Organización de Computadores con C++ y lenguaje ensamblador.
0 1803 posted 17 years ago by bedomax
The returned file will either contain the folder from where your program is running or the executable jar file, if your program is an executable jar. I'm using `Main.class` because this code is in my main method (which is in the class 'Main'). You...
0 1758 posted 17 years ago by resurge
1 ... 448 449 450 451 452 ... 552