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
haris |
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
Title 49th parallel | |
URL http://artsweb.bham.ac.uk/ | |
Domain artsweb.bham.ac.uk | |
Title ABAA booknet | |
URL http://abaa.org/ | |
Domain abaa.org |
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
gem 'faye-websocket', :git => 'git://github.com/faye/faye-websocket-ruby.git' |
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
#import "NSFNanoObject.h" | |
@interface Person : NSFNanoObject | |
@property (nonatomic, strong) NSString *name; | |
@property (nonatomic, strong) NSString *location; | |
@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
NSBezierPath *roundedRect = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:6.0 yRadius:6.0]; | |
[roundedRect fill]; |
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
get '/queue_song' do | |
@client = Twilio::REST::Client.new ENV['TWILIO_ACCOUNT_SID'], ENV['TWILIO_AUTH_TOKEN'] | |
@call = @client.account.calls.create( | |
:from => '+13473144879', | |
:to => '+13158491034', | |
:url => 'http://173.204.223.126/play_song' | |
) | |
end | |
post '/play_song' do |
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 'benchmark' | |
n = 100 | |
Benchmark.bm do |x| | |
x.report("each") { num=0;[1..n].each{ |i| num+= 1} } | |
x.report("inject") { [1..n].inject(0){ |s,i| s+= 1} } | |
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
Evan has authored coulda, which is a cool integration testing framework. But more importantly, and the reason for my nomination, is that he is tirelessly trying to help others get into ruby. RubyDCamp which is a free uncoference event he runs annually. The amount of effort he spends trying to get quality people to attend this free event pales in comparison to the effort he spends getting such a free event sponsored for an awesomely fun, educational, and philanthropic event that any programming community can have. |
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 fizzbuzz(n)n%15==0?"FizzBuzz": n%5==0?"Buzz": n%3==0?"Fizz": n.to_s 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
Message = new Schema({content: String,nickname: String,created_at: Date}) | |
Picture = new Schema({user: ObjectId,title: String,url: String,start_at: Date,end_at: Date,messages: [Message],created_at: Date,updated_at: Date}) | |
PhotoAccount = new Schema({token: String,token_secret: String,provider: String,username: String,domain: String,avatar: String}) | |
User = new Schema({token: String,token_secret: String,username: String,domain: String,avatar: String,created_at: Date,updated_at: Date,photo_accounts: [PhotoAccount]}) | |
picture = mongoose.model('Picture', Picture) |