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
*.gem | |
*.rbc | |
/.config | |
/coverage/ | |
/InstalledFiles | |
/pkg/ | |
/spec/reports/ | |
/spec/examples.txt | |
/test/tmp/ | |
/test/version_tmp/ |
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
require 'thread' | |
class AsyncConsole | |
# | |
# Creates a new Asynchronous Console, within the given context. | |
# | |
# @param [Module] context | |
# The context to evaluate code within. | |
# |
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
Verifying my Blockstack ID is secured with the address 1MF4R8dVMT4AQB1KGxmSqBv1HYbRffW3Zh https://explorer.blockstack.org/address/1MF4R8dVMT4AQB1KGxmSqBv1HYbRffW3Zh |
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
# A simple plugin for Jekyll that allows you to use {% url "alt text" %} to add images to your posts. | |
# It will automatically check those images for width and height. | |
# | |
# Requires http://imagesize.rubyforge.org/ | |
require 'image_size' | |
require 'open-uri' | |
module Jekyll |
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 bash | |
old=$1 | |
new=$2 | |
if ! [ "$new" ]; then | |
new=`psql -V | cut -d' ' -f3` | |
fi | |
if ! [ "$old" ]; then | |
echo "Usage: pgupgrade.sh <old-version> [new-version]" |
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
Capybara.app_host = "http://localhost:3001" | |
Capybara.run_server = false |
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 Agent < ActiveRecord::Base | |
validates :first_name, :last_name, :email, presence: true | |
validates :email, uniqueness: true | |
has_many :missions | |
scope :on_assignment, -> { Agent.joins(:missions).where(missions: { status: 'active' }) } | |
scope :not_on_assignment, -> { where.not(id: Agent.on_assignment.pluck(:id)) } | |
def name | |
"#{first_name} #{last_name}" | |
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
require 'minitest/mock' | |
require 'minitest/unit' | |
require 'date' | |
MiniTest::Unit.autorun | |
class TestMailPurge < MiniTest::Unit::TestCase | |
class MailPurge | |
def initialize(imap) | |
@imap = imap |
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
{ | |
"version": "0.1.0", | |
"tasks": [ | |
{ | |
"isShellCommand": true, | |
"taskName": "bundle install", | |
"command": "bundle", | |
"args": ["install"], | |
"suppressTaskName": true | |
}, |