jmiller


Member since 09/02/2009

16 snippets

8934 profile views

6 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

jmiller's Recent Snippets



« Prev 1 Next »
This would convert images at 30fps to a mp4 video, with sequence titles: ImageName0000.png, ImageName0001.png, etc. You could use -r 1/5 to use one frame every five seconds.
1 2480 posted 13 years ago by jmiller
This will get the 11-character YouTube video ID from any valid YouTube URL. Based on http://snipplr.com/view/57065/get-youtube-video-id/ but made more robust to handle additional URL inputs
0 3105 posted 13 years ago by jmiller
Turns /n to <br> and /n/n to </p><p> Usage: echo stripslashes(nl2br(nls2p($text)));
0 1293 posted 15 years ago by jmiller
Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')
0 1377 posted 15 years ago by jmiller
Pass in object. Returns array.
0 1344 posted 15 years ago by jmiller
0 1662 posted 15 years ago by jmiller
Takes one field and converts the string to a URL-friendly slug in a second field
1 1245 posted 15 years ago by jmiller
Here's a handy query for finding duplicates in a table.
3 1590 posted 15 years ago by jmiller
Will strip off the decimals of a number (price) unless they are necessary.
0 1159 posted 15 years ago by jmiller
2 3427 posted 15 years ago by jmiller
Strips out every character except 0-9
0 1205 posted 15 years ago by jmiller
This is useful if you do not currently have a trunk/branch structure and would like to move everything into a new trunk.
0 3442 posted 16 years ago by jmiller
This is useful for upgrading Drupal modules, etc.
0 1506 posted 16 years ago by jmiller
1 1400 posted 16 years ago by jmiller
« Prev 1 Next »