Perl template for TextMate
Here’s how you can create perl scripts in TextMate, starting from a template instead of a blank screen.
Posted: March 17th, 2008 under macintosh, scripting.
Comments: 2
art & technology
Here’s how you can create perl scripts in TextMate, starting from a template instead of a blank screen.
Posted: March 17th, 2008 under macintosh, scripting.
Comments: 2
I was looking for a quick and simple PHP function that would validating credit card numbers, but the code I found was mostly clunky and sometimes just wrong. I wrote this function and it seems to work correctly. Feel free to use it and leave a comment here if it works for you.
Posted: March 1st, 2008 under scripting.
Comments: none
This is how I find out where a remote client is coming from. It takes into account proxies and tries to get the hostname using gethostbyaddr(). Frankly, this was written many years ago so I’m not sure if I’d do it the same way. If nothing else, it should be a good starting point for [...]
Posted: April 29th, 2007 under scripting.
Comments: none
Ever wanted to create a 1 pixel transparent GIF with Perl? Me neither, but this is still neat to have in the toolbox.
Posted: April 29th, 2007 under scripting.
Comments: none
I wrote this cross-reference a while back for people who know how to program using Perl and are looking for some of the familiar Perl functions in the php language. When I originally write it, we were stuck with php 3 so I just reworked the list to include some of the functions that were [...]
Posted: April 28th, 2007 under internet, scripting.
Comments: none
This one time, I thought maybe I’d try compressing URLs to make the query strings shorter.
Posted: December 16th, 2005 under internet, scripting.
Comments: none
I’m posting this short chunk of php code that might save you a few minutes. It creates a list of US states in an HTML or XHTML SELECT list. Download the zip file here.
Posted: December 16th, 2005 under scripting.
Comments: 1
Here’s a template for adding javascript code to an HTML page. It might save you 30 seconds someday.
Posted: July 30th, 2005 under internet, scripting.
Comments: none