Welcome To Snipplr


Everyone's Recent Snippets Tagged convert



Convert rgb color detected by jQuery into hex value.
0 2129 posted 14 years ago by macodev
This code is applied from http://www.ultramegatech.com/blog/2009/06/snippet-converting-seconds-to-readable-time/
0 1669 posted 14 years ago by zierocode
This function accept one parameter (integer or float) and returns the same number writed with words. Useful for currencies and invoices.
0 2715 posted 14 years ago by stz184
It's very useful if you build a FLV player for example, and want to convert the time into minutes:seconds (example: 6:13) //apply it to your project like this (and don't forget to import the class): time.text = TimeUtil.getTimecode(timeValue);
0 4072 posted 14 years ago by vamapaull
This SAS macro will convert a dataset to a text file
0 4382 posted 14 years ago by webonomic
A pair of handy terminal commands for converting Apple .plist preference files from binary to XML format [allowing for easy editing with a text editor] and then back to binary again, afterwards.
0 3703 posted 14 years ago by stiobhart
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0 2886 posted 14 years ago by aristoworks
must install flac and lame apt-get install flac apt-get install lame
0 1572 posted 14 years ago by pbreah
Sometimes a legacy database will have HTML entities stored in it. This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.
0 4613 posted 14 years ago by f6design
0 2915 posted 14 years ago by silentpro
0 2553 posted 14 years ago by kspal
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 1814 posted 15 years ago by nebojsac
Takes a number (no decimal) and converts it to written words.Why'd i write it to be able to do such big numbers? Why not? Note: The numbers next to the 'thousandfoldnums' are for your reference (thats how many zeros/places there are in that numbe...
0 2117 posted 15 years ago by lasavior
Con estas instrucciones se pueden corregir los caracteres latinos que hayan sido almacenados erróneamente en una base de datos MySQL
1 3065 posted 15 years ago by n19ht
Convert number of seconds to HH:MM
0 1507 posted 15 years ago by odavy
1 2464 posted 15 years ago by frederichoule
0 1606 posted 15 years ago by vss
0 1719 posted 15 years ago by takel
This simply takes an array and coverts it to variables. E.g. If you had an array, $array = array("key" => "value"), after running this script, $key would be "value".
0 1779 posted 15 years ago by mloberg
Stolen from stetho -- All thanks to AppleScript to convert CMYK to RGB values http://bit.ly/eP2mXS
0 2348 posted 15 years ago by brandonjp
Full credit for this goes to Deva Raj (@nsdevaraj). This is also a good function for doing a similar thing, http://snipplr.com/view/27954/as3-convert-a-number-to-a-string/
2 2783 posted 15 years ago by adrianparr
Full credit for this class goes to Deva Raj (@nsdevaraj). Many thanks.
1 2417 posted 15 years ago by adrianparr