Skip to content

Instantly share code, notes, and snippets.

View samullen's full-sized avatar

Samuel Mullen samullen

View GitHub Profile
@samullen
samullen / heroku_import.sh
Last active December 23, 2015 07:18
function to import heroku database into a local postgres database Usage: heroku_import <appname> <database name>
function heroku_import {
app=$1
database=$2
dumpfile="/tmp/${database}.dump"
heroku pgbackups:capture --app $app
curl -o $dumpfile `heroku pgbackups:url --app ${app}`
pg_restore --verbose --clean --no-acl --no-owner --jobs 4 -d $database $dumpfile
}
@samullen
samullen / todo.rb
Last active August 29, 2015 14:08
Very basic todo script for use in an "Intro to Ruby" project I'm developing.
#!/usr/bin/env ruby
require "date"
class Todo
attr_accessor :complete
attr_reader :name, :due_on
def initialize(name, due_on=nil, complete=false)
@name = name
@samullen
samullen / keybase.md
Created September 19, 2019 18:18
keybase.md

Keybase proof

I hereby claim:

  • I am samullen on github.
  • I am samullen (https://keybase.io/samullen) on keybase.
  • I have a public key ASCXrrHQGs_AlnftyrLbcSM3YXg2vd28mo__mejPhoOrBQo

To claim this, I am signing this object:

@samullen
samullen / table.mkdn
Created February 22, 2020 18:12 — forked from ngs/table.mkdn
Unicode character table

A

Description Entity Preview
A With Acute, Latin Capital Letter &#x00C1; Á
A With Acute, Latin Small Letter &#x00E1; á
A With Breve, Latin Small Letter &#x0103; ă
A With Caron, Latin Small Letter &#x01CE; ǎ
A With Circumflex, Latin Capital Letter &#x00C2; Â
A With Circumflex, Latin Small Letter &#x00E2; â