Skip to content

Instantly share code, notes, and snippets.

View mdespuits's full-sized avatar

Matthew Wells mdespuits

View GitHub Profile
@mdespuits
mdespuits / book.rb
Created August 14, 2018 15:04 — forked from sirupsen/book.rb
Script to import books from Instapaper to Airtable
class Book < Airrecord::Table
class Endorser < Airrecord::Table
self.base_key = ""
self.table_name = "Endorser"
end
self.base_key = ""
self.table_name = "Books"
has_many :endorsements, class: 'Book::Endorser', column: 'Endorsements'
@mdespuits
mdespuits / bench_str_building.rb
Created August 31, 2012 15:31 — forked from alno/bench_str_building.rb
Benchmark: interpolation vs concatenation in Ruby
require 'benchmark'
count = 1_000_000
Benchmark.benchmark do |bm|
bm.report("concat") { count.times { 11.to_s + '/' + 12.to_s } }
bm.report("interp") { count.times { "#{11}/#{12}" } }
end
@mdespuits
mdespuits / sublime_shortcuts.md
Last active October 9, 2015 15:28 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts (Mac OS X)

General

Command Action
⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
@mdespuits
mdespuits / gist:2492087
Created April 25, 2012 18:41 — forked from thommahoney/gist:2491946
RailsConf 2012 Lightning Talks
1 min:
~Painless Javascript
koting hatduklgg
with wind tunnel
~tenderlove.dup jremsikjr
~iwanttolearnruby.com
(collecting resources for learning ruby)