I hereby claim:
- I am cheshire137 on github.
- I am cheshire137 (https://keybase.io/cheshire137) on keybase.
- I have a public key ASCYDtNML3BizFS2gSmgo_2osYnXm9sWQTp748en-luS6go
To claim this, I am signing this object:
require 'spec_helper' | |
module Module1 | |
describe Module2::MyClass do | |
let(:my_instance) { Module1::Module2::MyClass.new('abc', 123) } | |
context 'super cool context' do | |
# Use cassette Module1_Module2_MyClass/super_cool_context/neat_method.yml | |
describe 'neat_method', vcr: relative_cassette('neat_method') do | |
subject { my_instance.neat_method(id) } |
require 'erb' | |
# lib/missing_spec_generator.rb | |
class MissingSpecGenerator | |
RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
def spec_file spec_path, file_name, spec_template, namespace | |
spec_name = file_name.gsub('.rb', '') + '_spec.rb' | |
if File.exist?("#{spec_path}/#{spec_name}") | |
puts "#{spec_path}/#{spec_name} exists" |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' | |
class SteamAPI | |
attr_reader :api_key, :user_id, :api_url | |
def initialize api_key, user_id, api_url=nil |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'rubygems' | |
# require 'nokogiri' | |
require 'json' | |
require 'rss' | |
require 'open-uri' | |
require 'uri' | |
class RSSFetcher |
#!/usr/bin/env ruby | |
require 'uri' | |
require 'json' | |
require 'net/https' | |
require 'time' | |
require 'cgi' | |
require 'csv' | |
# You need a Spotify API app to have a client ID and client secret. Create | |
# one at https://developer.spotify.com/my-applications/#!/applications/create |
#!/usr/bin/env ruby | |
require 'fileutils' | |
path = File.expand_path('~/.*rc') | |
Dir[path].each do |file| | |
next unless File.file?(file) | |
destination = file.gsub(/rc$/, 'ronaldchase') | |
puts "#{file} -> #{destination}" | |
FileUtils.ln_s(file, destination) |
// 1. Go to a URL like https://github.com/my-org/my-repo/pull/1/commits | |
// 2. Open up your browser JavaScript console. | |
// 3. Paste the command below. | |
// Now you have git cherry-pick commands for making a branch of those commits! | |
var commands = '';jQuery('a.sha').each(function() { var url = $(this).attr('href'); var sha = url.split('/commit/')[1]; commands += 'git cherry-pick ' + sha + "\n"; }); console.log(jQuery.trim(commands)); |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'json' | |
url = "https://en.wikipedia.org/wiki/List_of_city_nicknames_in_the_United_States" | |
STATES = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", | |
"Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", | |
"Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", | |
"Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", |
#!/bin/bash | |
# Sample use: | |
# PATTERN="\"/some-route\"" FILE=config/routes.rb ~/bin/git-line-history.sh | |
# Thanks to mikedillion <https://github.com/mikedillion> for the basis of this! | |
set -e | |
#PATTERN="version':" | |
#FILE="setup.py" |