This file contains 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
require 'dl/import' | |
require "dl/struct" | |
module Hotkey | |
extend DL::Importable | |
# dlload "Carbon.framework/Frameworks/HIToolbox.framework/HIToolbox" | |
dlload "Carbon.framework/Carbon" | |
# OSStatus RegisterEventHotKey ( | |
# UInt32 inHotKeyCode, |
This file contains 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
[~/projects/euchre] rake spec --trace | |
(in /Users/phurley/projects/euchre) | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/logger.rb:62: warning: already initialized constant Levels | |
rake aborted! | |
uninitialized constant Merb::Orms::DataMapper::Connect::BeforeAppRuns | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing_before_generators' | |
/Library/Ruby/Gems/1.8/gems/rubigen-1.3.2/lib/rubigen/lookup.rb:13:in `const_missing' | |
/Library/Ruby/Gems/1.8/gems/merb_datamapper-0.9.2/lib/merb_datamapper.rb:8 | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/core_ext/kernel.rb:49:in `require' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/core_ext/kernel.rb:49:in `load_dependency' |
This file contains 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
[~/projects/euchre] rake spec --trace | |
(in /Users/phurley/projects/euchre) | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/logger.rb:62: warning: already initialized constant Levels | |
rake aborted! | |
uninitialized constant Merb::Orms::DataMapper::Connect::BeforeAppRuns | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing_before_generators' | |
/Library/Ruby/Gems/1.8/gems/rubigen-1.3.2/lib/rubigen/lookup.rb:13:in `const_missing' | |
/Library/Ruby/Gems/1.8/gems/merb_datamapper-0.9.2/lib/merb_datamapper.rb:8 | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/core_ext/kernel.rb:49:in `require' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/core_ext/kernel.rb:49:in `load_dependency' |
This file contains 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
class Static < Application | |
# ...and remember, everything returned from an action | |
# goes to the client... | |
def index | |
render | |
end | |
def demo | |
# render |
This file contains 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
Merb.logger.info("Compiling routes...") | |
Merb::Router.prepare do | |
match('/').to(:controller => "static", :action => "index").name(:front) | |
match('/demo').to(:controller => "static", :action => "demo").name(:demo) | |
match('/register').to(:controller => "user", :action => "new").name(:register) | |
match('static/foo').to(:controller => "static", :action => "foo").name(:foo) | |
# RESTful routes | |
resources :tournaments | |
This file contains 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
require'open-uri';def r b;open("http://roulette.engineyard.com").read=~/13/?b*35:0;end |
This file contains 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
Verifying I am +phurley on my passcard. https://onename.com/phurley |
This file contains 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
require 'csv' | |
require 'json' | |
require 'ox' # external gem, must be available | |
class FileConvert | |
def self.process(input, output) | |
output.process(input.to_ruby) | |
end | |
end |
This file contains 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
Homebrew build logs for rogual/neovim-dot-app/neovim-dot-app on Mac OS X 10.11.4 | |
Build date: 2016-04-25 13:25:42 |
This file contains 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
Homebrew build logs for rogual/neovim-dot-app/neovim-dot-app on Mac OS X 10.11.4 | |
Build date: 2016-04-25 13:25:42 |
OlderNewer