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
"SELECT `movies`.* FROM `movies` INNER JOIN `casts` ON `casts`.`movie_id` = `movies`.`id` INNER JOIN `sources` ON `sources`.`id` = `casts`.`source_id` INNER JOIN `sites` ON `sites`.`id` = `casts`.`site_id` WHERE (sources.priority >= 1) AND (sites.open = 0) LIMIT 50 OFFSET 0" |
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
public abstract class Mixologist extends Person { | |
protected static int numServings = 0; | |
protected static synchronized void addServing() | |
{ | |
numServings++; | |
} | |
... |
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
public abstract class Mixologist extends Person { | |
protected static Integer numServings = 0; | |
protected static synchronized void addServing() | |
{ | |
numServings++; | |
} | |
... |
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
class Test | |
attr_accessor :other | |
def initialize(args) | |
@value = "value" | |
@other = args | |
end | |
end | |
puts Test.new("Okey").inspect | |
#<Test:0x100360e38 @other="Okey", @value="value"> |
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
[user] | |
name = Linus Oleander | |
email = [email protected] | |
[core] | |
editor = mate -w |
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
--- | |
:benchmark: false | |
gem: --no-ri --no-rdoc | |
:update_sources: true | |
:bulk_threshold: 1000 | |
:verbose: true | |
:sources: | |
- http://rubygems.org | |
:backtrace: false |
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
@channel.should_receive(:generate_key!).at_least(1).times.with(({time: now, type: 'playlists'}), ({time: ago, type: 'playlists'})).and_return(key, random) |
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
→ rspec spec/models/gig_spec.rb | |
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- spec/spec_helper (LoadError) | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in `block in requires=' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in `map' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in `requires=' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:23:in `block in configure' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:22:in `each' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:22:in `configure' | |
from /Users/linus/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.5.1/lib/rspec/core/com |
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
module RadioChannels | |
def self.get_data(url) | |
# Some code | |
end | |
end |
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
data = { | |
artist: "The artist", | |
song: "The song", | |
time: 1297262873 /* Unix timestamp */ | |
} |