Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Todays dates are shown as hh:mm, dates from yesterday and earlier as dd mmm.
This can be useful, since recent dates are showing more details
        
        
        
            0 
        
        
            3472 
        
                    posted 12 years ago by lakkie
            Calculadora de Ãrea que soporta Cuadrado, Rectángulo, Triángulo, CÃrculo y Rombo.
        
        
        
            0 
        
        
            1355 
        
                    posted 12 years ago by a7xrturo
            Redirect all users to access the site WITHOUT the 'www.' prefix
        
        
        
            0 
        
        
            1617 
        
                    posted 12 years ago by graceman9
            Mixin sets element width without clogging your markup. Set layout width, number of columns and gutter width.
I use it to make sites responsive when if don't need to change the amount of columns.
eg. 1218px, 978px and 768px grids.
Usage:
Full...
        
        
        
            0 
        
        
            3130 
        
                    posted 12 years ago by adambuczek
            I find myself needing to constantly find new ways to massage the featured image via WordPress themes. This is my starting code. Note: I often use timthumb.
        
        
        
            2 
        
        
            2426 
        
                    posted 12 years ago by FlashBuddy
            Renames files in a directory. If no directory is specified, the current directory is used.
        
        
        
            0 
        
        
            3207 
        
                    posted 12 years ago by ff1959
            A quick function that makes it easy to convert an integer into a number string with commas inserted.
        
        
        
            0 
        
        
            1394 
        
                    posted 12 years ago by uberdragon
            Usage: 
var a = ['a','a','a'];
var b = a.AllValuesSame(): //true
var a ['1','1','2'];
var b = a.AllValuesSame(); //false
        
        
        
            0 
        
        
            4445 
        
                    posted 12 years ago by uberdragon
            This will calculate the ticks for google charts so that you can have a chart with a defined height, and still represent large data ranges with out all the vertical information getting bunched up together.
        
        
        
            0 
        
        
            1300 
        
                    posted 12 years ago by uberdragon
            I don't really know how other people do this kind of thing, but this was my take.
        
        
        
            0 
        
        
            2385 
        
                    posted 12 years ago by domramirez
            Call this method to set the intervals for a UISlider in Monotouch.  You can remove the textbox parameter if you don't have them linked to sliders.
        
        
        
            0 
        
        
            933 
        
                    posted 12 years ago by negzero7
            A sample JSON representation of an Esri Web map based on the [ExportWebMap specifications](
http://resources.arcgis.com/en/help/rest/apiref/exportwebmap_spec.html)
The JSON is a parameter to be input into the [Export Web Map task](
http://sample...
        
        
        
            0 
        
        
            3704 
        
                    posted 12 years ago by azmi
            Here's a country list with continent and country by country code!
        
        
        
            0 
        
        
            2830 
        
                    posted 12 years ago by kilise
            **Example of use:**
    
    if (!isUniversityEmail('[email protected]'))
         exit('You must have a valid and .edu email address to register for an account.');
        
        
        
            1 
        
        
            2572 
        
                    posted 12 years ago by phpdev
            Comingsoon Page for those who don't have time to code.
HTML5 web form for email subscription. PHP backend and MySql database.
Compatible across browsers
        
        
        
            0 
        
        
            1360 
        
                    posted 12 years ago by flanker
            For example, in a button, in OnClientClick method, pass parameters for a javascript method.
        
        
        
            0 
        
        
            4460 
        
                    posted 12 years ago by keidash
            By default Apache won't allow you to download a file over 2GB.  This PHP script overcomes that along with some extra goodies.
The script will read from standard url path the file on the server to download and display the filesize along with a link...
        
        
        
            1 
        
        
            2648 
        
                    posted 12 years ago by deanhouseholder
            To be used in WordPress template. List full taxonomy, or only custom post type associated with the post. Examples include a linking or non linking list.
        
        
        
            2 
        
        
            1145 
        
                    posted 12 years ago by lromak
            To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size.
        
        
        
            2 
        
        
            2488 
        
                    posted 12 years ago by adambundy
            A program I wrote for data analysis during my final project at university.
        
        
        
            0 
        
        
            1004 
        
                    posted 12 years ago by dancohen990
            
