This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| $existing_methods = [] | |
| def print_methods(library) | |
| new_methods = [].methods.sort - $existing_methods | |
| for method in new_methods | |
| puts "Array##{method}" | |
| end | |
| puts "(total: #{new_methods.size} added by #{library})\n\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coda@lunchbox /L/R/G/1/specifications> less jsonpretty-1.0.0.gemspec | |
| # -*- encoding: utf-8 -*- | |
| Gem::Specification.new do |s| | |
| s.name = %q{jsonpretty} | |
| s.version = "1.0.0" | |
| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | |
| s.authors = ["Nick Sieger"] | |
| s.date = %q{2009-02-19} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- LastFM - Ban Current Track | |
| set previousApp to name of (info for (path to frontmost application)) | |
| tell application "Last.fm" to activate | |
| tell application "System Events" to keystroke "b" using command down | |
| open location "x-launchbar:hide" | |
| tell application previousApp to activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # Written by Coda Hale <coda.hale@gmail.com>. MIT License. Go for it. | |
| def include_pattern(filename) | |
| core = filename.gsub(/_spec/, "").gsub(/\Aspec\//, "") | |
| return Regexp.quote(core) | |
| end | |
| if ARGV.empty? || ARGV == ["--help"] || ARGV == ["-h"] | |
| STDERR.puts("Usage:") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def whack(objects) | |
| return Hash[*objects.map{ |o| [o.send("table_name"), o.send("delete_all")] }.flatten] | |
| end |
NewerOlder