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
** Invoke test:full (first_time) | |
** Invoke test (first_time) | |
** Execute test | |
/home/matt/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -w -I"lib:lib:test" -rubygems -I"/home/matt/.rvm/gems/ruby-1.9.2-p180@rabl/gems/rake-0.9.2/lib" "/home/matt/.rvm/gems/ruby-1.9.2-p180@rabl/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/*_test.rb" | |
/home/matt/.rvm/gems/ruby-1.9.2-p180@rabl/gems/bundler-1.0.15/lib/bundler/rubygems_ext.rb:43: warning: method redefined; discarding old gem_dir | |
/home/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1262: warning: previous definition of gem_dir was here | |
/home/matt/.rvm/gems/ruby-1.9.2-p180@rabl/gems/bundler-1.0.15/lib/bundler/rubygems_ext.rb:154: warning: method redefined; discarding old hash | |
/home/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:125: warning: previous definition of hash was here | |
/home/matt/.rvm/gems/ruby-1.9.2-p180@rabl/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:183: warning: method redefined; |
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
+ (UIColor*)colorFromString:(NSString*)colorString | |
{ | |
UIColor* color; | |
if ([colorString characterAtIndex:0] == '#') { | |
unsigned int hexValue; | |
[[NSScanner scannerWithString:[colorString substringFromIndex:1]] | |
scanHexInt:&hexValue]; | |
NSInteger red, green, blue; | |
switch([colorString length]) { |
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
static char clickTargetScaleKey; | |
static char clickTargetWidthKey; | |
static char clickTargetHeightKey; | |
BOOL pointInsideWithEvent( | |
UIView* self, SEL _cmd, CGPoint point, UIEvent* event) { | |
NSNumber* clickTargetScaleNumber = | |
objc_getAssociatedObject(self, &clickTargetScaleKey); | |
assert(clickTargetScaleNumber); | |
float clickTargetScale = [clickTargetScaleNumber floatValue]; |
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
// Construct and run the javascript. SBJsonParser only works with objects or | |
// arrays, so we wrap the result in an array in case the result is not either | |
// an object or an array. | |
NSString* wrappedJavascript = | |
[NSString stringWithFormat:@"JSON.stringify([%@])", javascript]; | |
NSString* resultJSON = [componentPlugin writeJavascript:wrappedJavascript]; | |
// Parse and return the result, making sure to unwrap the result first. | |
SBJsonParser* jsonParser = [[[SBJsonParser alloc] init] autorelease]; | |
NSArray* wrappedResult = [jsonParser objectWithString:resultJSON]; |
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
terrapin matt # emerge -p qt-test | |
These are the packages that would be merged, in order: | |
Calculating dependencies... done! | |
[ebuild R ] x11-libs/qt-test-4.7.2 | |
WARNING: One or more updates have been skipped due to a dependency conflict: | |
x11-libs/qt-core:4 |
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
terrapin matt # emerge -auNDv world | |
These are the packages that would be merged, in order: | |
Calculating dependencies... done! | |
[ebuild U ] dev-libs/expat-2.0.1-r6 [2.0.1-r5] USE="unicode%* -examples -static-libs" 0 kB [0] | |
[ebuild U ] media-libs/libogg-1.3.0 [1.2.0] USE="-static-libs" 283 kB [0] | |
[ebuild U ] dev-libs/icu-4.8.1.1-r1 [4.8.1-r2] USE="-debug -doc -examples -static-libs" 18,239 kB [0] | |
[ebuild U ] sys-devel/gnuconfig-20110814 [20110202] 50 kB [0] | |
[ebuild U ] sys-apps/pciutils-3.1.9-r1 [3.1.7] USE="-compress-db% -network-cron -static-libs% -zlib" 333 kB [0] |
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
terrapin matt # emerge -auNDv --tree world | |
These are the packages that would be merged, in reverse order: | |
Calculating dependencies... done! | |
[nomerge ] net-fs/samba-3.5.11 USE="acl aio avahi client cups fam ldap netapi pam readline server smbclient -addns -ads -caps -cluster -debug -doc -examples -ldb -quota -smbsharemodes -smbtav2 -swat -syslog -winbind" [0] | |
[ebuild U ] sys-libs/talloc-2.0.7 [2.0.1-r1] USE="-compat -python% (-doc%) (-static-libs%) (-swig%)" 363 kB [0] | |
[ebuild FU ] dev-java/sun-jre-bin-1.6.0.31 [1.6.0.29] USE="X alsa -jce -nsplugin" 20,814 kB [0] | |
[ebuild U ] www-plugins/adobe-flash-11.1.102.63 [11.1.102.55] USE="64bit kde (multilib) vdpau -32bit" 6,878 kB [0] | |
[ebuild U ~] www-plugins/google-talkplugin-2.6.1.0 [2.5.6.0] USE="libnotify system-libCg" LINGUAS="-ar% -bg% -bn% -ca% -cs% -da% -de% -el% -en% -es% -et% -fa% -fi% -fil% -fr% -gu% -hi% -hr% -hu% -id% -is% -it% -ja% -kn% -ko% -lt% -lv% -ml% -mr% -ms% -nl% -no% -or% -pl% -ro% -ru% -sk% -sl% -sr% -sv% -ta% -te% - |
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
def establish_s3_connection! | |
AWS::S3::Base.establish_connection!( | |
access_key_id: ENV['AMAZON_ACCESS_KEY_ID'], | |
secret_access_key: ENV['AMAZON_SECRET_ACCESS_KEY'] | |
) | |
end | |
establish_s3_connection! | |
local_file_name = 'bar/foo.zip' |
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 StateFlow | |
module Entity | |
def included(base) | |
base.field :state type: :symbol | |
end | |
end | |
def run_forever | |
every(10.seconds) do | |
# Find every entity that we know how to transition, queue the appropriate |
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
{:timestamp=>"2014-05-08T04:49:21.066000+0000", :message=>"config LogStash::Outputs::ElasticSearch/@action = \"index\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"} | |
{:timestamp=>"2014-05-08T04:49:28.311000+0000", :message=>"Starting lumberjack input listener", :address=>"0.0.0.0:12345", :level=>:info, :file=>"logstash/inputs/lumberjack.rb", :line=>"38"} | |
{:timestamp=>"2014-05-08T04:49:28.721000+0000", :message=>"Pipeline started", :level=>:info, :file=>"logstash/pipeline.rb", :line=>"78"} | |
{:timestamp=>"2014-05-08T04:49:35.001000+0000", :message=>"New Elasticsearch output", :cluster=>nil, :host=>"localhost", :port=>"9201", :embedded=>false, :protocol=>"http", :level=>:info, :file=>"logstash/outputs/elasticsearch.rb", :line=>"240"} | |
{:timestamp=>"2014-05-08T04:49:35.013000+0000", :message=>"Automatic template management enabled", :manage_template=>"true", :level=>:info, :file=>"logstash/outputs/elasticsearch.rb", :line=>"259"} | |
{:timestamp=>"2014-05-08T04:49:35.015000+0000", :message=>"Using m |