Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This example shows how to release artifacts into Artifactory by using Buildr, the origin of this code is http://groups.google.com/group/buildr-talk/
1
953
posted 17 years ago by narkisr
Name the form what ever you like, but make sure that is reflected in the javascript.
0
5504
posted 17 years ago by jachin
Features: Complies to version 2.1 of the vCard specification
Supports the following attributes:
* Name
* Formatted Name
* Phone and fax numbers
* Birthday
* Address
* Address label
* email address
* notes...
6
3090
posted 17 years ago by jonhenshaw
From: David Walsh.
http://davidwalsh.name/dw-content/open-links.php
2
1885
posted 17 years ago by gbot
ASP does not have a built in function to reverse or sort array like other languages. Find out how to do it.
1
1785
posted 17 years ago by neal_grosskopf
Este script calcula la edad en años a partir de una fecha dada y la resta con la actual.
0
1252
posted 17 years ago by isaac
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0
1368
posted 17 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP. It's easy to change the - to / or spaces...
0
2568
posted 17 years ago by isaac
This changes the date format from d-m-y to y-m-d on PHP. It's easy to change the - to / or spaces...
1
2855
posted 17 years ago by isaac
Execute this to remove the .svn directory from the current directory and all sub directories
3
1578
posted 17 years ago by meinhard
Command line currency convertor, just copy and paste. I named mine 'coin'. Make sure you have Ruby, Rubygems and Hpricot (gem install hpricot).
e.g.
~$ coin 100 eur usd
158.3300
Uses the site xurrency.com.
1
1246
posted 17 years ago by plexus
Takes a date and returns a string describing how long ago that date was. examples: 3 seconds ago, 5 days ago, 2 years ago, you get the idea :)
17
9287
posted 17 years ago by patcullen
This is meant to be run as root, so do it at your own risk. It's very raw and needs error checking, but works. I run this script to get new django sites off the ground in a few minutes.
0
2047
posted 17 years ago by mandric