Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Many thanks to bloggingdeveloper.com for this one. Works like a charm. Usage is similar to server side built-in functions.
2
1782
posted 17 years ago by charmcitycoder
This is useful for syncing two folders on different computers over ssh (the default transport of rsync).
1
1749
posted 17 years ago by narkisr
This assumes that you have sqlcmd (comes with SQL Server client tools) installed and wish to execute every file ending in .sql within the given directory against the specified server and database using Windows Authentication.
2
2486
posted 17 years ago by hoffstein
I didn't realise until now you could do this in jQuery, very useful. Store a value for later use, then remove it.
4
2066
posted 17 years ago by 1man
C++
Visual Studio debug tools to detect and debug memory leaks by setting a breakpoint on a particular memory allocation.
The Visual Studio output window will display "Detected memory leaks!" with a memory allocation number, for example, {145}. See Memory Leak Detection Enabling.
Using the debugger (without changing code) see: http://msdn.microsoft.com/en-us/library/...
1
4030
posted 17 years ago by jimfred
You'll need the latest version of [jQuery](http://www.jquery.com) and the jquery.cookie plugin([Snag it here!](http://www.stilbuero.de/2006/09/17/cookie-plugin-for-jquery/))
1
2226
posted 17 years ago by conspirator
Rake task - Copies files from one directory to another in a batch of 50 files, giving 15 seconds break between each batch.
1
2230
posted 17 years ago by cnicolaou