Skip to content

Instantly share code, notes, and snippets.

"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"
public abstract class Mixologist extends Person {
protected static int numServings = 0;
protected static synchronized void addServing()
{
numServings++;
}
...
public abstract class Mixologist extends Person {
protected static Integer numServings = 0;
protected static synchronized void addServing()
{
numServings++;
}
...
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">
[user]
name = Linus Oleander
email = [email protected]
[core]
editor = mate -w
---
:benchmark: false
gem: --no-ri --no-rdoc
:update_sources: true
:bulk_threshold: 1000
:verbose: true
:sources:
- http://rubygems.org
:backtrace: false
@channel.should_receive(:generate_key!).at_least(1).times.with(({time: now, type: 'playlists'}), ({time: ago, type: 'playlists'})).and_return(key, random)
→ 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
module RadioChannels
def self.get_data(url)
# Some code
end
end
data = {
artist: "The artist",
song: "The song",
time: 1297262873 /* Unix timestamp */
}