Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use by sending a unix timestamp to countTime(timestamp). It will return something like 40 seconds , 2 weeks, 1 hour. Then just format to your needs like we do in our app: Someone was here 10 minutes ago.
0
784
posted 13 years ago by GeorgeL
Ported to PHP from here:
http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)
2
1033
posted 13 years ago by ozke
This is probably the first vertical JavaScript text ticker that sues tilted letters. Works with Internet Explorer 6x/7x/8x/9x, Firefox 3.6x, Opera 10.5x and Google Chrome 4x/5x/6x. Older Browsers show no ticker.
0
827
posted 13 years ago by fabulant
Pulls data from a plist set up as a dictionary of arrays of strings.
Creates multi-level TableView that can be nested inside a navigation controller.
Snippet shows key methods for 2 nested levels.
2 levels --> 2 classes (both of which extend UIT...
0
815
posted 13 years ago by bethjt1220
What's so special about this JavaScript slideshow? By moving your cursor all over the webpage you create a nice distortion effect on your images.
0
742
posted 13 years ago by fabulant
converts array (which is reference) in format
<code>
array(0 => array('id' => 1, 'name' => 'orange'), 1 => array('id' => 3, 'name' => 'banana'));
</code>
to
<code>
array(1 => array('id' => 1, 'name' => 'orange'), 3 => array('id' => 3, 'n...
0
696
posted 13 years ago by slav123
Simple usage:
var xmlLoader:LoadXMLUtil = new LoadXMLUtil("path_to_xml.xml");
xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete);
private function onLoaderComplete(event:Event):void{
trace("Loaded XML: ");
trace(xmlLoader.xml...
2
768
posted 13 years ago by burnandbass
Registro de usuario en PHP con validación y activación por mail
0
1364
posted 13 years ago by danideu
RGBa is a way to declare a color in CSS that includes alpha transparency support.
Filter for IE could be add per conditional comment
0
741
posted 13 years ago by dkl3in
Some elements that are clickable mysteriously don’t trigger a pointer cursor in browsers. This fixes that, and provides a default class “pointer†for applying it to other clickable things as needed.
0
667
posted 13 years ago by JohnGR