Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
        
        
        
            0 
        
        
            1472 
        
                    posted 13 years ago by shin
            Find and replace contents of files ending in .php with nothing.  then append contents of template.php to all files in directory
        
        
        
            0 
        
        
            1320 
        
                    posted 13 years ago by zlincoln
            Just a simple code snippet that uses cmd to send an ExtendScript to an application like Photoshop® or InDesign®.
        
        
        
            0 
        
        
            983 
        
                    posted 13 years ago by layouterlimits
            Displaying your latest tweets is a good way to encourage people to follow you on Twitter. The most common place to display tweets is in the sidebar, although you can add them to any area of the website.
        
        
        
            0 
        
        
            1444 
        
                    posted 13 years ago by i-am-andy
            I wanted to make a function / method and pass a var to it form another class.
        
        
        
            0 
        
        
            3613 
        
                    posted 13 years ago by kutyadog
            Output your errors to the Windows event log. Very effective to output from try catch blocks.
        
        
        
            2 
        
        
            1550 
        
                    posted 13 years ago by Verician
            I needed to open a browser window from my small C# app as a result of a dynamic URL build from data received from the command line. This did the trick!
        
        
        
            1 
        
        
            2879 
        
                    posted 13 years ago by Verician
            second level of categories (when offset=-1 doesn't work, like for "get_category_link()"), pictures must be called exactly like category slug and placed to "catimg" folder. also i used "substr" for cut decription (314 symbols but you can change it). U...
        
        
        
            0 
        
        
            1081 
        
                    posted 13 years ago by shin
            If you have a list of images and want'them all to preload before page is shown. This function is very useful.
I use it in various cases working with Phonegap to get my app a better native experience.
        
        
        
            0 
        
        
            1180 
        
                    posted 13 years ago by bernhardb
            Smart Time Ago is a little jQuery library to update the relative timestamps in your document intelligently.
        
        
        
            0 
        
        
            1226 
        
                    posted 13 years ago by praveensewak
            With jQuery and SPServices, we have very powerful tools for accessing and manipulating Sharepoint data and precisiely contolling the presentation, entirely from the client side. But such solutions generally need to be either hard-coded into pages or...
        
        
        
            0 
        
        
            4007 
        
                    posted 13 years ago by rumremix
            Simple code example that allows you to pull a time stamp / timestamp to attach to end of URL for GET POST calls
        
        
        
            0 
        
        
            1682 
        
                    posted 13 years ago by kutyadog
            Convert 12-hour time format with hour, minutes, seconds, and meridiem into 24-hour  format. Performs data correction to make sure hours, minutes and seconds have leading zeros if needed.
The trick here is to use strtotime() where we pass the time...
        
        
        
            0 
        
        
            5789 
        
                    posted 13 years ago by kosinix
            Sum all elements of a bidimensional or multi-dimensional array with an assigned key
        
        
        
            0 
        
        
            1531 
        
                    posted 13 years ago by eortiz
            Add the first line in terminal and press return.
Add second line in terminal press return to refresh the dock
        
        
        
            0 
        
        
            1082 
        
                    posted 13 years ago by klagraff
            If Chrome is bothering with unknown borders and things like that, just apply this.
        
        
        
            0 
        
        
            2187 
        
                    posted 13 years ago by valenzine
            this snippet is for this html structure
    %form
      %ol
        %li
          %label Label:
          %input
        
        
        
            0 
        
        
            2277 
        
                    posted 13 years ago by Merstzik
            Obtener el cursor de oracle y recorrerlo para sacar los datos
        
        
        
            0 
        
        
            2626 
        
                    posted 13 years ago by thescorpion
            Procedimiento para retornar un Cursor y recorrerlo en Java
        
        
        
            0 
        
        
            3570 
        
                    posted 13 years ago by thescorpion
            You could start a transaction before running your queries and then rollback after running them. Note that to do this you'll require InnoDB or XtraDb tables (won't work on MyISAM).
        
        
        
            0 
        
        
            2411 
        
                    posted 13 years ago by satie83
            Code from https://snipt.net/geekyjohn/get-url-param/ updated so that most jslint issues are resolved, and updated the return to use a guard condition instead of a separate if statement.
        
        
        
            1 
        
        
            2741 
        
                    posted 13 years ago by pmw57
            This is a route that ables the website to show the user's profile to the world.
        
        
        
            0 
        
        
            938 
        
                    posted 13 years ago by rafaelfragosom
            
