Welcome To Snipplr


Everyone's Recent Snippets



1 ... 135 136 137 138 139 ... 552
Use in the WP loop. User's registered email account on WP must also be assigned to Gravatar.
0 1855 posted 15 years ago by jacksaidwhat
0 1744 posted 15 years ago by ahdriel
0 1987 posted 15 years ago by iroybot
Cocoa provides NSTask to run subprocesses. It can be used to run shell scripts, but all this manual pipe and file handling is a bit cumbersome. Fortunately, for a simple script, we can use the trusty old system and redirect its result to a file.
0 2784 posted 15 years ago by zingo
look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
0 3463 posted 15 years ago by iammikecohen
This sql statement enables to detect duplicates entries over a key and creates a seq column which says which one is the sequence of the duplicates. This way you can take only the seq = 1 and still be able to identify all duplicates
0 4271 posted 15 years ago by xavsio4
I was working on a project where the timestamp string I was getting from the backend developer was pretty dirty in the way it was formatted. For example, it looked like "/Date(1310127448000+0100)/". I needed to get a nicely formatted time from it in...
0 2565 posted 15 years ago by adrianparr
html skeleton 4.01 Strict!
0 2348 posted 15 years ago by mortu
Convert number of seconds to HH:MM
0 1696 posted 15 years ago by odavy
Artificial intelligence basics : This is a backward chaining implementation which works with horn form knowledge bases. Had some trouble finding any simple and easy to understand examples online - so here's my version!!! http://en.wikipedia.org/wiki/...
0 2895 posted 15 years ago by bjornredemption
Artificial intelligence basics : This is a forward chaining implementation which works with horn form knowledge bases. Had some trouble finding any simple and easy to understand examples online - so here's my version!!! http://en.wikipedia.org/wiki/...
0 3386 posted 15 years ago by bjornredemption
For displaying logo graphic with CSS
0 1421 posted 15 years ago by disgruntledillon
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 5784 posted 15 years ago by adrianparr
Enables you to easily select older version of CSS by class rather than having a seperate CSS file for each version of IE.
0 3160 posted 15 years ago by plesh
0 2932 posted 15 years ago by devnull69
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
0 2022 posted 15 years ago by tcam27
Bei vielen Applikationen fällt auf, dass beim Start ganz kurz ein komplett schwarzer Screen auf dem Display erscheint, der jedoch gleich wieder verschwindet. Über diesem Screen ist dann ein schmaler grauer Balken, in dem der Name der Applikation st...
0 1862 posted 15 years ago by UTA2000
0 2164 posted 15 years ago by arunpjohny
See https://github.com/clemens/i18n_demo_app/blob/master/config/locales/de.yml for the source of the month names etc.
1 1952 posted 15 years ago by riddla
1. Open lib/zend/locale/data/en.xml 2. Locate territories tag in this file 3. copy one of territory tags for the syntax and paste it within the territories tag 4. hard part here is to add country code in this file as might not be able to fin...
0 2049 posted 15 years ago by JustMadMike
Connect to three sites using threads and without using them. Fetch the response. Measure the benchmark.
0 1614 posted 15 years ago by Shamaoke
Convert a string to friendly string.
0 1784 posted 15 years ago by alyssonweb
Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
0 2266 posted 15 years ago by FatFolderDesigner
This example expects there to be a dynamic textfield on the stage with the instance name of 'myTextFieldOnStage'. Remember to embed the fonts (Numerals and Colon).
0 2857 posted 15 years ago by adrianparr
0 1867 posted 15 years ago by neoline
1 ... 135 136 137 138 139 ... 552