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
Started GET "/assets/ikit.css" for 127.0.0.1 at 2012-10-19 11:46:30 -0600 | |
11:46:30,532 INFO [cuttlefish] (http-localhost/127.0.0.1:8080-1) Served asset /ikit.css - 304 Not Modified (77ms) | |
11:46:30,537 INFO [cuttlefish] (http-localhost/127.0.0.1:8080-2) | |
Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-10-19 11:46:30 -0600 | |
11:46:30,558 INFO [cuttlefish] (http-localhost/127.0.0.1:8080-2) Served asset /jquery.js - 404 Not Found (15ms) | |
11:46:30,567 FATAL [cuttlefish] (http-localhost/127.0.0.1:8080-2) | |
ActionController::RoutingError (No route matches [GET] "/assets/jquery.js"): | |
actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' |
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
Before swizzling: | |
<ExObj:0x7fc098415140 | |
_ivar0 = Foo | |
_ivar1 = 42 | |
_ivar2 = { | |
anotherObject = "<ExObj:0x7fc098414d80\n _ivar0 = Bar\n _ivar1 = 1\n _ivar2 = {\n }>"; | |
}> | |
After swizzling: | |
<ExObj:0x7fc098415140 |
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
#import <Foundation/Foundation.h> | |
#import "FSArguments.h" | |
int main(int argc, const char * argv[]) { | |
@autoreleasepool { | |
FSArgumentSignature * helpFlag = [FSArgumentSignature argumentSignatureWithFormat:@"[-h --help]"]; | |
FSArgumentSignature * inFileFlag = [FSArgumentSignature argumentSignatureWithFormat:@"[-i --in-file]={1,}"]; | |
FSArgumentSignature * outFileFlag = [FSArgumentSignature argumentSignatureWithFormat:@"[-o --out-file]="]; | |
NSSet * signatures = [NSSet setWithObjects:helpFlag, inFileFlag, outFileFlag, nil]; |
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
NSURLRequest* req= [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://fsdev.net"]]; | |
__block NSData* mySite= nil; | |
FSURLOperation* oper= [FSURLOperation URLOperationWithRequest:req completionBlock:^(NSHTTPURLResponse* resp, NSData* payload, NSError* asplosion) { | |
mySite = payload; | |
}]; | |
NSBlockOperation* onFinish= [NSBlockOperation blockOperationWithBlock:^{ | |
NSMutableURLRequest* spamReq= [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.fsdev.net/"]]; |
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
HOOLIGAN_STYLES={ | |
'themes/hooligan/stylesheets/_sass/style.scss' => 'themes/hooligan/stylesheets/css/style.css' | |
} | |
module Rake | |
class Task | |
def has_dependency? task, inspected_tasks=[] | |
task= Rake::Task[task] if task.class != Rake::Task | |
return true if self == task | |
return false if inspected_tasks.include? self |
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
Last login: Mon Aug 13 15:54:31 on ttys005 | |
Welcome back, commander! | |
cmiller@cmiller-iMac:~ | |
> which irb | |
/Users/cmiller/.rvm/rubies/ruby-1.9.3-p194/bin/irb | |
cmiller@cmiller-iMac:~ |
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
require 'mkmf' | |
require 'set' | |
begin | |
require 'libv8' | |
rescue LoadError | |
require 'rubygems' | |
require 'libv8' | |
end | |
have_library('objc') if RUBY_PLATFORM =~ /darwin/ |
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
NSDictionary * sharedFoo() { | |
static NSDictionary * foo; | |
static dispatch_once_t f; | |
dispatch_once(f, ^{ | |
foo = [NSDictionary dictionaryWithObjectsForKeys: | |
@"bar", @"foo"]; | |
}; | |
return foo; | |
} |
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
// | |
// COADocumentWindowController.m | |
// Co-Author | |
// | |
// Created by Christopher Miller on 4/13/12. | |
// Copyright (c) 2012 FSDEV. All rights reserved. | |
// | |
#import "COADocumentWindowController.h" | |
#import "COAManagedNode.h" |
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
Dear Apple, | |
We need to talk. We love your software, we really do. Or maybe we don't but we want to tell you why | |
so you can try to improve it. We are developers ourselves and we know how hard it is to write | |
software, to find and fix bugs, to know what your users want from your software. We want to file bug | |
reports and feature requests for every bug we find or feature we think of. As a community we want you | |
to know what is important to us, in a way that doesn't require you to trawl through countless blogs | |
and tweets. Unfortunately you're making it so incredibly hard to do so. | |
The only way to really communicate with Apple about what is broken and what we want is Radar. But |