Tag : BY

Title User Language Tags Description Date
`rb output margin zhaowu Ruby April 5
Entry title eggcaker C++ January 6
Byte convertor MGHollander PHP

Handy function for converting bytes to KB, MB, GB, etc.

October 10
Capture Screenshots in Ruby Maximus1983 Ruby

Use this Gem to programmatically take screenshots of websites with this completely open source and free library. We have also provided easy to follow online tutorials and sample applications to help you set up GrabzIt as quickly as possible.

First run:

gem install grabzit

Then register a new account on http://grabz.it to get your application key and application secret.

Then use the code as shown below!

August 9
Imba Shutdown mrtonix PHP

Placed after dummy for picker

August 5
CodeBreaker slmnwise Ruby

The "Mastermind" Game, Digitized

April 23, 2012
Ruby: Search Spotify API chrisaiv Ruby

Simple test showing how to make a request to Spotify's API.

January 26, 2012
Monster Beats by Dr.Dre headset Pro lcy1208 ActionScript 3

Monster Beats by Dr.Dre headset Pro

December 11, 2011
Ruby: Parsing Blackberry Download Reports chrisaiv Ruby

The Blackberry AppWorld portal allows you to schedule reports which are delivered as CSV.zip files. Although the CSV file offers a lot of detail about operating system and date of download, most of the time I just want to know which users downloaded the app from which countries. So usually I choose "Country, then date", unpack the .zip and run this (verbose) ruby script.

November 10, 2011
Singleton Pattern MacRuby iloveitaly Ruby

Works fine for MacRuby applications

November 2, 2011
Ruby: SMPTE Converter chrisaiv Ruby

If you need to do any sort of screen capturing using FFMPEG, you might need this one day

October 29, 2011
Rescue any exception in Ruby cczona Bash

From the Pickaxe, 4th edition, p. 352:

A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue every exception, use this:

October 20, 2011
jEdit macros integrating jRuby guai Java

Almost the same as my snippet for groovy, but for jruby

September 22, 2011
remove trailing space from specific file (ex. ruby) giver Bash August 24, 2011
Ruby CSV writing and reading example with quotes, line breaks and commas in the fields m1b Ruby August 19, 2011