Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 512 513 514 515 516 ... 553
0 1399 posted 18 years ago by marco3w
https://www.chrisjmendez.com/2007/10/15/ruby-parse-delicious-rss-feeds/
2 2062 posted 18 years ago by chrisaiv
Sitepoint have this useless but cool feature if you hold down the middle click to autoscroll the page - they have replaced the image that indicates scrolling
1 1293 posted 18 years ago by natalie
https://www.chrisjmendez.com/2017/10/15/ruby-web-2-0-name-generator/
1 1293 posted 18 years ago by chrisaiv
With thanks to joshk :)
4 1765 posted 18 years ago by WimLeers
With thanks to emspace for the original code :)
1 1470 posted 18 years ago by WimLeers
With thanks to emspace for the original code :)
3 1720 posted 18 years ago by WimLeers
Step 1: Copy and paste the e-mail Form Code into a 'contact.php' page (must be a html/php page on a server that allows php!). Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. T...
3 2478 posted 18 years ago by jonhenshaw
A database table is basically an array of dictionary objects. As long as all the fields are valid property list types, you can loop through the array creating a managed object for each dictionary and setting the values. If you have an array con...
2 2186 posted 18 years ago by zingo
The setTimeout ensures that if there is an issue attaching the link to the bottom of the head (e.g. if the head hasn’t finished loading when the link is trying to be attached) it retries after 100ms. Resetting the css variable to null avoids potent...
1 2276 posted 18 years ago by natalie
How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.
12 3393 posted 18 years ago by andyhartleeds
One shot verbose expansion.
4 1724 posted 18 years ago by bbhack
-nd do not create a hierarchy of directories (save all recursively retrieved files in the current directory) -r recursive retrieving -l1 set maximum recursion depth to 1 (stay in that folder): set to 2 if necessary --no-parent do not...
3 2312 posted 18 years ago by iblis
If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-.
0 1589 posted 18 years ago by zingo
Drupal snippet: outputs all theming variables of a content type or page. Add to template.php the following function: function _phptemplate_variables($hook, $vars) { return array('vars_data' => $vars); } then add the snippet to the relativ...
5 2730 posted 18 years ago by marcoba
2 1856 posted 18 years ago by therobot
1 1405 posted 18 years ago by therobot
0 1283 posted 18 years ago by therobot
You can also check other kind of perms changing the constant os.R_OK
0 1605 posted 18 years ago by arcturus
1 ... 512 513 514 515 516 ... 553