LocalBitcoins (for small amounts, cash)
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
class Array | |
def move(steps) | |
(steps % size).times { self << shift }; return self | |
end | |
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
class WestheimerRule | |
UNITS = %i(seconds minutes hours days weeks months years lustra decades | |
centuries millennniums) | |
def initialize(time:, unit:) | |
@time = time | |
@unit = unit | |
end | |
def estimate |
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
class App | |
REQUEST_METHOD = 'REQUEST_METHOD'.freeze | |
PATH_INFO = 'PATH_INFO'.freeze | |
attr_reader :env | |
def initialize(routes) | |
@routes = routes | |
@h = Hart.new(@routes) | |
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
#!/usr/bin/env ruby | |
module Scrambler | |
FACES = %w[B L D R U F].freeze | |
def self.run(steps) | |
directions = [] | |
faces = [] | |
steps.times do |
I hereby claim:
- I am srabuini on github.
- I am naitsabes (https://keybase.io/naitsabes) on keybase.
- I have a public key ASB-9-9MGlwX1BgPPgdwTeG_NZn7lnQe5eZ6WA-G2ftgFQo
To claim this, I am signing this object: