Skip to content

Instantly share code, notes, and snippets.

@blacktm
blacktm / irb.rb
Created January 20, 2013 16:16
An IRB implementation in Ruby.
require 'readline'
first_run = true
loop do
if first_run
puts
puts "Type a command to get started."
puts "Type \"exit\" to quit."
first_run = false
@blacktm
blacktm / js_builder.rb
Created April 25, 2012 20:31
A JavaScript minifier and dependency loader in Ruby.
#!/usr/bin/env ruby
# Notes:
# * Your JS files in the "manifest" will be minified using Google's Closure Compiler
# and added to the final build in the order listed.
# * Vendor libraries (like jQuery) and the "compiler.jar" must be in your
# "vendor_lib_path" directory.
# * Write your JS in modules for best results!
# Running file directly