Skip to content

Instantly share code, notes, and snippets.

View dhempy's full-sized avatar

David Hempy dhempy

View GitHub Profile
@dhempy
dhempy / ancillary data file
Last active August 29, 2015 14:11
my frist gist.
Hey, did you know this has several files?
hu nu?
@dhempy
dhempy / delete_test_3.rb
Created February 5, 2015 19:28
Example of lazy execution in rspec - let vs. let! vs. object mention
require 'rails_helper'
RSpec.describe V1::AppsController, type: :controller do
let(:user) { create(:user) }
describe '[mention] DELETE destroy when you are not logged in' do
let(:app) { create(:app, account: user.account) }
let(:make_request) { delete :destroy, id: app, format: :json }
it 'does not delete the app (.count)' do
@dhempy
dhempy / gist:dfda874a03c09eff1af3
Last active August 29, 2015 14:15
Gem::RemoteFetcher::UnknownHostError
I'm having zero success vagrant provisioning social-service. It fails to load various
gems. When I ssh in and install manually, I get similar errors. It seems I'm having
sporadic problems reaching rubygems.org. Googling for the error suggests a network
connectivity problem.
I've reset my wifi connection, restarted the vm, destroyed the vm, and tried it all again.
I feel like that it's not actually a network issue...but I'm running out of ideas and
wasting far too much time on this.
Any ideas?
@dhempy
dhempy / gist:0fb51506c43c683900ab
Created April 15, 2015 19:32
paragraph in markdown

System Docs

How to Run

With Vagrant

  1. vagrant up
  2. vagrant ssh
@dhempy
dhempy / gist:c8f869aecd3bbbb7ed73
Created August 14, 2015 18:37
.bashrc additions
alias cop='rubocop `git diff --name-only | grep .rb`'
alias rs='bundle exec rspec --order defined'