Skip to content

Instantly share code, notes, and snippets.

View leoallen85's full-sized avatar

Leo Allen leoallen85

  • Makers Academy
  • London, UK
View GitHub Profile
require 'segment'
require './lib/configurable'
require './lib/pipedrive/client'
module Analytics
class Update
include Configurable
attr_reader :params
@leoallen85
leoallen85 / sanjify.js
Created October 30, 2015 16:02
SANJIFY
javascript:((function()%20%7B%20%20var%20imgs%3Ddocument.getElementsByTagName(%27img%27)%3Bfor(var%20i%3D0%3Bi%3Cimgs.length%3Bi%2B%2B)%7Bimgs%5Bi%5D.setAttribute(%27src%27,%27https://avatars1.githubusercontent.com/u/4478671%3Fv%3D3%26s%3D400%27)%3B%7D%7D)())
@leoallen85
leoallen85 / journey_log.rb
Created October 22, 2015 14:10
Dependency Injection in the method
describe JourneyLog do
subject(:journey_log) { described_class.new }
let(:journey_klass) { double(:journey_klass) }
let(:journey) { double(:journey) }
describe "Starting a journey" do
it "adds a journey to the log" do
allow(journey_klass).to receive(:new).with(:station).and_return(journey)
@leoallen85
leoallen85 / journey_log.rb
Last active October 22, 2015 14:11
Dependency Injection in the constructor
describe JourneyLog do
subject(:journey_log) { described_class.new(journey_klass: journey_klass) }
let(:journey_klass) { double(:journey_klass) }
let(:journey) { double(:journey) }
describe "Starting a journey" do
it "adds a journey to the log" do
allow(journey_klass).to receive(:new).with(:station).and_return(journey)
[user]
name = Leo Allen
email = [email protected]
[push]
default = simple
[core]
excludesfile = ~/.gitignore_global
editor = vim
[color]
ui = auto
[
[ 0] {
:name => "_outline.md",
:path => "issues/_outline.md",
:sha => "04db9a6e3b8f2be4c77fe627a62ddf72a49dc74b",
:size => 1132,
:url => "https://api.github.com/repos/makersacademy/oystercard/contents/issues/_outline.md?ref=master",
:html_url => "https://github.com/makersacademy/oystercard/blob/master/issues/_outline.md",
:git_url => "https://api.github.com/repos/makersacademy/oystercard/git/blobs/04db9a6e3b8f2be4c77fe627a62ddf72a49dc74b",
:download_url => "https://raw.githubusercontent.com/makersacademy/oystercard/master/issues/_outline.md?token=AMbuTfscTXyCf2ic0X9no7GTw5mNNcFEks5VxKeLwA%3D%3D",
= partial :"full_graduates", locals: { category: "career changer" }
# improve colors
set -g default-terminal 'xterm-256color'
unbind r
bind r source-file ~/.tmux.conf
# act like vim
setw -g mode-keys vi
bind h select-pane -L
@leoallen85
leoallen85 / nikeshify.js
Created June 12, 2015 17:48
Nikeshify - add the code below as a new bookmark in your bookmark bar and click it on a site for nikeshify joy
javascript:(function()%7Bvar%20imgs%20%3D%20document.getElementsByTagName(%22img%22)%3Bfor(var%20i%3D%200%3B%20i%3Cimgs.length%3Bi%2B%2B)%20%7Bimgs%5Bi%5D.setAttribute(%22src%22%2C%20%22https%3A%2F%2Fscontent-lhr3-1.xx.fbcdn.net%2Fhphotos-xap1%2Fv%2Ft1.0-9%2F532263_634508385632_131969757_n.jpg%3Foh%3De98154d2f2f3884fbb9b73a71eb52caf%26oe%3D55E6B875%22)%3B%7D%7D)()
source "https://rubygems.org"
ruby "2.2.2"
gem "sinatra"
gem "makers_styles", github: "makersacademy/style_guide"
group :development, :test do
gem "rspec"
gem "pry"