Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 345 346 347 348 349 ... 553
Consider the following piece of code which compares two arrays to find which elements exist in outerArray that do not exist in innerArray:
0 1366 posted 16 years ago by quan
This is excellent for testing (mocking a SOAP server for example), we use an in memory http server in order to answer client requests.
0 1790 posted 16 years ago by narkisr
0 826 posted 16 years ago by dlokesh
There is no debian startup script for the lighttpd webserver, if you install the server from sources. You could rewrite the redhat init script for your self, but i've already done this for you :-)
0 1091 posted 16 years ago by crypt
1 1111 posted 16 years ago by zachharkey
The first function make short urls. The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location"...
1 2857 posted 16 years ago by ginoplusio
Stick this inside the <?php> and you get the month group title shown only once for that date range. Sexy.
0 1239 posted 16 years ago by daipratt
Esquema basico manejo cursores en MYSQL
0 1179 posted 16 years ago by xaviles
0 1117 posted 16 years ago by daipratt
Piece of cake and easy to use
0 1520 posted 16 years ago by shapeshifta
Sniffing http request & response using pcap in Ruby.
2 1696 posted 16 years ago by narkisr
0 1237 posted 16 years ago by yazu
Use this userstyle with Fluid for a sweet desktop Google Voice application.
0 1198 posted 16 years ago by schlaeps
See the contents within a directory and print them out.
0 1470 posted 16 years ago by chrisaiv
Pretty straight forward. Replace 'PLUGIN_NAME' with the name of your plugin, add your code in the appropriate places, test and deploy. Should be pretty easy to use, I commented it heavily.
1 1244 posted 16 years ago by mdrisser
Handy function that allows you get some data on a file
0 1396 posted 16 years ago by chrisaiv
Replace the default WordPress “W” logo in the administrative header with a custom one. Add this code inside the theme’s “functions.php” file.
0 1541 posted 16 years ago by math89
Remove the “Please upgrade now” message in the Wordpress Dashboard Paste the code in your functions.php
0 1263 posted 16 years ago by math89
The easy way to set this up is to go to the macro window by pressing alt+F11. Select the sheet from left panel. there will be two drop down. from the left drop down select worksheet and from right drop down list select the event 'change'.
0 1528 posted 16 years ago by derekholmes
A browser friendly way to trigger an event on an element. This is just a simple snippet which doesn\'t really explain the detailed contents of an event object, but it gives an idea of the differences between specific browsers. This function will fire...
0 1810 posted 16 years ago by bryanlyman
From Web Design Ledger "13 Useful Code Snippets for WordPress Development" For additional information, see the link above.
0 1473 posted 16 years ago by mdrisser
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"
0 1367 posted 16 years ago by mdrisser
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"
1 1467 posted 16 years ago by mdrisser
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"
0 1560 posted 16 years ago by mdrisser
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"
2 1440 posted 16 years ago by mdrisser
I didn't create this but I have used it man time. It's super easy to implement and customize.
0 1769 posted 16 years ago by thehamilton
0 1192 posted 16 years ago by level09
1 ... 345 346 347 348 349 ... 553