Welcome To Snipplr
Everyone's Recent Snippets Tagged convert
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
So. You have some minutes and want a "human readable" version? Sure thing baby!
        
        
        
            2 
        
        
            8242 
        
                    posted 16 years ago by optimal
            If you don't have Adobe Acrobat Pro to export a PDF to multiple images, you can use this ImageMagick code.
This command will produce the files 'result-0.jpg' , 'result-1.jpg', etc... for each PDF page.
        
        
        
            5 
        
        
            1936 
        
                    posted 16 years ago by webonomic
            
            PHP
        
            Convert incorrectly-formatted UTF-8 strings of HTML into correctly-formatted UTF-8 strings of plain text.  
        
                    Useful for taking incorrectly-formatted UTF-8 strings containing HTML data, and converting them to correctly-formatted UTF-8 plain text.
A handy tool for displaying HTML stored in a database.
        
        
        
            4 
        
        
            2666 
        
                    posted 16 years ago by X3Maverick
            My friend Jamal Fanaian showed me how to convert a string to its' ASCII value.
        
        
        
            0 
        
        
            3770 
        
                    posted 16 years ago by luizlopes
            This function takes a string containing a date in "mm/dd/yyyy" or "m/d/yyyy" format and converts it to a date object in AS2.
        
        
        
            0 
        
        
            1713 
        
                    posted 17 years ago by Winkyboy
            Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
        
        
        
            0 
        
        
            1772 
        
                    posted 17 years ago by jonhenshaw
            Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
        
        
        
            2 
        
        
            1970 
        
                    posted 17 years ago by distinctdev
            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 
        
        
            1235 
        
                    posted 17 years ago by plexus
            Diese Funktion wendelt Entities in HTML Quellcode um, ohne dabei den HTML Quellcode zu zerstören.
        
        
        
            1 
        
        
            1403 
        
                    posted 17 years ago by OscarWilde
            Everything is either true or untrue, or both true and untrue, or neither true nor untrue
        
        
        
            0 
        
        
            3409 
        
                    posted 17 years ago by zvasanth
            Convert 12hs format to 24hs format. In example: 10:00:00 a.m. return timestamp for 22:00. Or use: strtotime('1970-01-01 '.$hora);
        
        
        
            1 
        
        
            1206 
        
                    posted 18 years ago by nicolaspar
            Convert (comma separated) keywords to (space separated) tags in BibTeX files for use in social bibliography sites (bibsonomy.org, citeulike.org)
        
        
        
            0 
        
        
            1471 
        
                    posted 18 years ago by iblis
            - lowQ/ is the output directory
- pass quality level from 1 to 100
        
        
        
            2 
        
        
            1728 
        
                    posted 18 years ago by abhiomkar
            
