Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 394 395 396 397 398 ... 553
Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
1 1287 posted 16 years ago by humanoid
Quick function to send out decent-looking (but simple) html emails.
2 1617 posted 16 years ago by fuzzylogic
Manipulates XML nodes using PHP's Dom library. Includes XPath navigation, child manipulation, and deletion of current document.
0 1243 posted 16 years ago by mikeevans
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1 1478 posted 16 years ago by radarseven
In Magento administration, go to System > Configuration. After choice Developer at the bottom of the page. In Prototype Deprecation Log switch to no.
0 1039 posted 16 years ago by nico65
Include file that contains the array of areacodes and states. **This file is needed for the Areacode Script to work. Script here: http://snipplr.com/view/17339/area-code-lookup-script/
2 1199 posted 16 years ago by arnoldb
This simple script will return what state an areacode belongs to. Be sure to get the include file that contains the array here: http://snipplr.com/view/17340/area-code-lookup-script--include-file/
1 1344 posted 16 years ago by arnoldb
returns URL that's an I'm feeling lucky search on wikipedia. Handy when paired with a database of names of things.
2 1196 posted 16 years ago by mocha0range
0 1201 posted 16 years ago by jpsirois
0 1094 posted 16 years ago by sixmedia
0 1119 posted 16 years ago by sixmedia
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules](http://tools.ietf.org/html/rfc5322#page-15 "RFC 5322, Page 15"). It supports named capt...
1 1788 posted 16 years ago by dreadwarrior
Runtime Object Evaluator; search for string object properties that start with !! and eval the content. Very useful if you want to load JSON from file and evaluate its fields on effective usage or access global variables at runtime. [Follow me on T...
1 1096 posted 16 years ago by straps
function as jquery plugin to test if selector is found on the current page. Sample use: if ( $("#myID").onpage() ) { $("#myID img").click(function(){ //do this..here.. });
0 1380 posted 16 years ago by pixelhandler
A few days ago i was looking for a script witch one will help me to unzip a file using PHP . There is 2 different ways to do it.One just execute a commend to unzip the file in the shell using PHP and another one is using library functions
2 1600 posted 16 years ago by fackz
Save this file as a .php somewhere on your webserver - NOT A WEB ACCESSIBLE LOCATION! Edit the lines in the top portion to suit your needs and call the file from bash like this: $> php cpanel-backup.php You can use a cronjob to make this run autom...
1 1570 posted 16 years ago by arnoldb
This assumes HTML that looks like this: <pre><code> &lt;div id=&quot;containing_div&quot;&gt; &lt;div id=&quot;div_1&quot; style=&quot;background-color:red&quot; class=&quot;visible_div&quot;&gt; &lt;p&gt;Test Content 1&lt;/p&...
2 1167 posted 16 years ago by chippper
0 1122 posted 16 years ago by endorfin
0 1296 posted 16 years ago by jpsirois
Neat CSS fixed background image scrolling 'trick'
3 1604 posted 16 years ago by myrebel420
1 ... 394 395 396 397 398 ... 553