Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Better way of generating date in ISO 8601 format (e.g. "2011-12-12T20:50:22+0100").  
Needs to require  [clj-time.core :as time]  and  [clj-time.format :as time-format].
        
        
        
            0 
        
        
            3877 
        
                    posted 13 years ago by ef
            Ever want to filter out a category from your blog page. Here's how you do it! Just add this snippet to your functions.php file.
        
        
        
            0 
        
        
            1100 
        
                    posted 13 years ago by goatboy91587
            Simple script utilising the `gpg_encrypt.php` code (`http://business-php.com/opensource/gpg_encrypt/`) that will encrypt both the body and attachment of an email on upload.
        
        
        
            0 
        
        
            2606 
        
                    posted 13 years ago by davo
            TimedText (TT) XML captions files can have namespaces that cause problems when parsing them in AS3. To get around this you can use this code to remove the namespace from the root XML node using Regex. This example uses
        
        
        
            0 
        
        
            3418 
        
                    posted 13 years ago by adrianparr
            "-n" just shows you what will be deleted.
Replace it with "-f" to actually clean your repository
        
        
        
            0 
        
        
            1328 
        
                    posted 13 years ago by limepix
            This function accept one parameter (integer or float) and returns the same number writed with words. Useful for currencies and invoices.
        
        
        
            0 
        
        
            1751 
        
                    posted 13 years ago by stz184
            A Modular method to set new text with color of an NSButton. Thanks go to the owner of this code - RayNewbie - in the Apple discussion forum.
        
        
        
            0 
        
        
            1676 
        
                    posted 13 years ago by mirage3d
            This code allows you to create an ID field value for inserts into a table that does not auto increment itself
        
        
        
            0 
        
        
            1289 
        
                    posted 13 years ago by ezerick
            
            ActionScript 3
        
            AS3 Convert TextField LineBreaks to CRLF for Display as Plain Text (Notepad) on Windows  
        
                    Linebreaks differ between Flash TextField and a plain text file like Notepad. In this example we convert the html linebreaks in Flash to \r\n
        
        
        
            0 
        
        
            3833 
        
                    posted 13 years ago by adrianparr
            Use this in your functions.php 
Sets one language for WP Admin and the other for front-end.
        
        
        
            2 
        
        
            1169 
        
                    posted 13 years ago by mihael
            How do you delete all objects in an entity in Core Data? It's not as simple or straightforward as it is in SQL/SQLite. here's one reasonably quick way...
taken from stackoverflow
        
        
        
            0 
        
        
            1575 
        
                    posted 13 years ago by mirage3d
            Creates table structure for pitchfx data that is provided by mlb.com.  Open PHP file and enter username and password for localhost.  Feel free to customize to suit your preference.
        
        
        
            0 
        
        
            2261 
        
                    posted 13 years ago by wa-rufio
            Open PHP file and enter User Credentials for localhost.  The default dates are set to negotiate the 2011 season, but change the date variables to match your desired season data.  The start date should be the day before opening day, and the end date t...
        
        
        
            0 
        
        
            2320 
        
                    posted 13 years ago by wa-rufio
            In this example I used the "Members" plugin to add a capability called "hide_jobs" and that was the trigger to hide certain admin menus and also hide the "Right Now" dashboard widget.
        
        
        
            0 
        
        
            1579 
        
                    posted 13 years ago by rliverman
            Reduce spam on WP installations (comment spam); this snippet does not look for https referers.
        
        
        
            0 
        
        
            3564 
        
                    posted 13 years ago by no4h
            Courtesy CSSTricks (http://css-tricks.com/snippets/wordpress/turn-on-more-buttons-in-the-wordpress-visual-editor/)
        
        
        
            1 
        
        
            1435 
        
                    posted 13 years ago by adambundy
            Ever notice a weird CS3 animation flicker? Annoying right? Add these CSS3 classes to the objects being animated and it should go away (at least it has in my testing). More details at the link, questions can be postsed either here or there.
        
        
        
            0 
        
        
            1443 
        
                    posted 13 years ago by FatFolderDesigner
            
