Welcome To Snipplr
Everyone's Recent Snippets
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
An ActionScript3 video player placed on the stage, configurable by FlashVars. It displays a spinning loader until the video loads.
Also see http://snipplr.com/view/11606/ for another AS3 video code template
Read about AS3 video in this in-depth t...
        
        
        
            0 
        
        
            1535 
        
                    posted 16 years ago by Winkyboy
            Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
        
        
        
            1 
        
        
            1158 
        
                    posted 16 years ago by humanoid
            Quick function to send out  decent-looking (but simple) html emails.
        
        
        
            2 
        
        
            1494 
        
                    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 
        
        
            1124 
        
                    posted 16 years ago by mikeevans
            Returns only the directory path to the current file — no host or filename, just URI directory structure.
        
        
        
            1 
        
        
            1328 
        
                    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 
        
        
            927 
        
                    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 
        
        
            1089 
        
                    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 
        
        
            1207 
        
                    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 
        
        
            1074 
        
                    posted 16 years ago by mocha0range
            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 
        
        
            1609 
        
                    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 
        
        
            977 
        
                    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 
        
        
            1246 
        
                    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 
        
        
            1419 
        
                    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 
        
        
            1401 
        
                    posted 16 years ago by arnoldb