Keybase proof
I hereby claim:
- I am alto on github.
- I am alto (https://keybase.io/alto) on keybase.
- I have a public key whose fingerprint is C0DC 3131 6C29 B56A FD32 9F87 C8BE F36F FC44 C1BB
To claim this, I am signing this object:
""" | |
ash_ffffind.py | |
v1.1 (September 14, 2015) | |
by me@aaronhildebrandt.com | |
Automatically downloads all images from ffffound saved by a specific user. | |
Will first try to download the image from the original source (to get the highest quality possible). | |
If that fails, it'll download the cached version from ffffound. | |
require 'rubygems' | |
require 'yaml' | |
# A demonstration of YAML anchors, references and handling of nested values | |
# For more info, see: | |
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
stooges = YAML::load( File.read('stooges.yml') ) | |
# => { | |
# "default" => { |
I hereby claim:
To claim this, I am signing this object:
require 'test_helper' | |
class FixturesTest < ActiveSupport::TestCase | |
def test_fixtures_for_validity | |
fixture_tables = all_fixture_tables | |
assert_not_equal 0, fixture_tables.size, "Unable to find any fixtures in #{fixture_files_path}" | |
fixture_tables.each do |table_name| | |
ActiveRecord::Fixtures.all_loaded_fixtures[table_name].each do |f| | |
fixture_name = f[0] |
class Job | |
def initialize(items_to_process) | |
@items = items_to_process | |
@timestamp = Time.now | |
# start_processing in the background... | |
end | |
def to_s | |
if finished? | |
"All work is done, all #{@items.size} items are processed." |
require 'test_helper' | |
class MyHelperTest < ActionView::TestCase | |
test "title" do | |
assert_select_in '<h1>My Awesome App</h1>', 'h1' | |
end | |
test "nav" do | |
html = '<div id="nav"><a href="/">Home</a></div>' | |
assert_select_in html, 'div' do |
[ | |
{ "keys": ["ctrl+shift+b"], "command": "git_blame" }, | |
{ "keys": ["ctrl+w"], "command": "find_under_expand" }, | |
{ "keys": ["super+ctrl+r"], "command": "reveal_in_side_bar" }, | |
{ "keys": ["super+ctrl+w"], "command": "close_all" }, | |
{ "keys": ["super+shift+t"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, | |
{ "keys": ["ctrl+shift+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+l"], "command": "insert", "args": {"characters": " => "} }, | |
{ "keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"} }, | |
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, |
# Optimized for writes, sort on read | |
# LVC | |
redis.hset("bonds|1", "bid_price", 96.01) | |
redis.hset("bonds|1", "ask_price", 97.53) | |
redis.hset("bonds|2", "bid_price", 95.50) | |
redis.hset("bonds|2", "ask_price", 98.25) | |
redis.sadd("bond_ids", 1) | |
redis.sadd("bond_ids", 2) |
class ActionDispatch::Routing::Mapper | |
def draw(routes_name) | |
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
end | |
end | |
BCX::Application.routes.draw do | |
draw :api | |
draw :account | |
draw :session |