Given this scenario:
K:\>dir
...
some_dir
job_1
...
K:\>cd some_dir
K:\some_dir> C:
C:> cd script
class Traveller | |
def what_are_you | |
puts "I'm a Backpacker" | |
end | |
def self.preferred_accommodation | |
puts "Hostels" | |
end | |
end |
class Bowling | |
class EmptyFrame | |
def pin_total | |
0 | |
end | |
def scores | |
[0,0] | |
end |
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$foo: blue; | |
#one { | |
color: $foo; | |
$ rspec sorting_spec.rb | |
F | |
Failures: | |
1) SortableThing can be sorted | |
Failure/Error: sorted = [thing1, thing2].sort | |
ArgumentError: | |
comparison of RSpec::Mocks::InstanceVerifyingDouble with RSpec::Mocks::InstanceVerifyingDouble failed | |
# ./sorting_spec.rb:20:in `sort' |
module Hangman (Model, Letter, initialModel, Action, update, view, main) where | |
{-| A hangman game in Elm. | |
@docs Model | |
@docs Letter | |
@docs Action | |
@docs initialModel | |
@docs update | |
@docs view |
tusk:Library andy$ brew --config | |
HOMEBREW_VERSION: 0.9 | |
HEAD: 7f24e45aceeb40cc77bdd5a9ff00dd606f1709e6 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: dual-core 64-bit core2 | |
OS X: 10.6.8 | |
Kernel Architecture: i386 | |
Xcode: 4.0 | |
GCC-4.0: N/A |
Given this scenario:
K:\>dir
...
some_dir
job_1
...
K:\>cd some_dir
K:\some_dir> C:
C:> cd script
I hereby claim:
To claim this, I am signing this object:
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
require 'uri' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] |
<?php | |
function newBenefit($oldBenefit, $quality, $squares_eaten) { | |
if($squares_eaten > 5) { | |
return -1.1 * abs($oldBenefit); | |
} else if($quality == 'cadbury') { | |
return $oldBenefit * 0.8; | |
} else { | |
return $oldBenefit * 0.95; | |
} | |
} |