See what we’ve written lately
Ruby: Web 2.0 Name Generator
Name Generator in the style of a Web 2.0 company.
Ruby: Sum of Fibonacci odd numbers
What is the sum of all odd numbers in the Fibonnoci sequence that are less than 5000? class Fibonacci def initialize @a = 1 @b = 1 @total = 0 end...
Ruby: SMPTE Converter
Convert a frame number to an SMPTE string or vice versa.
Ruby: Mixing in a Module immediately after an object's Singleton class
There are two ways to insert a Module above the objects singleton class but before the objects Class. # You can open the class definition body of a singleton...
Show .hidden folders and files in Os X Leopard
Some applications such dump itty bitty hidden files that will screw up your workflow if you don't manage them. Here's how to quickly identify...
Ruby: Open a text file and re-write its contents into a new text file
Basic example of how to open a text file and print them (including line-numbers) into a new text file. Example 1 - Long-hand counter = 1 old_file = File....
Ruby: Simple Example of Threading
You can run functions in parallel without any problems as long as you have enough memory in your computer and none of your functions are dependent on one...
Ruby: Encrypting / Decrypting Passwords using EzCrypto
Encrypting / Decrypting Passwords using EzCrypto
Ruby: Converting an array into YAML, Loading YAML into an array
# A. Import the YAML Library require 'yaml' # B. Create an array names = %w[chris sandy josie billy suzie] # Example 1 : Converting an array into YAML using:...