Welcome Guest,


This Page is Best Viewed in Firefox
Spreadfirefox Affiliate 	Button

Snippetz Library

« previous 1 2 next »

  1. Annoying javascript snippet from rickroll site

    Favoritesubmitted 721 days ago by Kevin under JavaScript

    <script type='text/javascript'>
       if (self.parent.frames.length && self.parent.frames.length != 0) self.parent.location =...see whole snippet
    Description: via http://www.1227.com/

  2. Actionscript 3 Pass by reference

    Favoritesubmitted 743 days ago by Kevin under ActionScript3

    			var array1:Array = new Array("one", "two", "three");
    			var array2:Array =...see whole snippet

  3. testesnip

    Favoritesubmitted 746 days ago by cebolas under Java

    import nothing.com;
    
    public class main{
                system.out.putln("blaaaa");
    }
    
    
    hoooo
    Description: nada de jeito aqui

  4. IE 6 Standardised Stylesheet

    Favoritesubmitted 747 days ago by Kevin under CSS

    /* -------------------------------------------------------------- 
    Standardised Internet Explorer 6 stylesheet:
    http://forabeautifulweb.com/blog/about/universal_internet_explorer_6_css/
    
    Author: Andy...see whole snippet

  5. Recursively add files to a SVN repo

    Favoritesubmitted 752 days ago by Kevin under Bash/shell

    svn status | grep "^\?" | awk '{print $2}' |...see whole snippet
    Description: To recursively add any files and directories (accounting for whitespace) to your Subversion repository without using svn add * --force, you may apply this command

  6. Create a thumbnail maintaining aspect ratio using GD

    Favoritesubmitted 755 days ago by Kevin under PHP

    /**
         * Create a thumbnail image from $inputFileName no taller...see whole snippet

  7. Test snip

    Favoritesubmitted 755 days ago by Kevin under PHP

    <?php
    
    echo "hello snip";
    
    ?>

  8. Thumbs on the fly

    Favoritesubmitted 755 days ago by Kevin under PHP

    <?php
    
    /*
    File: thumbs.php
    Example: <img src="thumbs.php?filename=photo.jpg&amp;width=100&amp;height=100">
    */
    
    $filename= $_GET['filename'];...see whole snippet

  9. US States and World Countries Collection

    Favoritesubmitted 755 days ago by Kevin under PHP

    //--------------------------------------------------------------------------------------------------------------------------------------
    
    $states_abv_string = 'AL, AK, AZ, AR, CA, CO, CT,...see whole snippet

  10. Anti-sql injection function

    Favoritesubmitted 755 days ago by Kevin under PHP

    function cleanuserinput($dirty){
    	if (get_magic_quotes_gpc()) {
    		$clean = mysql_real_escape_string(stripslashes($dirty));	 
    	}else{
    		$clean...see whole snippet

« previous 1 2 next »