Skip to content

Instantly share code, notes, and snippets.

@davidoram
davidoram / schema.sh
Last active August 29, 2015 14:05
Generate schemaspy docs for postgres db
#!/usr/bin/env bash
#
# Spit out Schemaspy docs for a rails project, on a postgres db
#
# Assumes:
# - Have installed graphviz installed & in the path
# If not run 'brew install graphviz'
# - java installed & in the path
# - postgresql-9.3-1102.jdbc41.jar in current dir
# - schemaSpy_5.0.0.jar in current dir
@davidoram
davidoram / custom_cell.rb
Created May 15, 2014 10:59
Custom UITableViewCell in rubymotion
class CustomCell < UITableViewCell
def location=(value)
@locationLabel.text = value
end
def ringName=(value)
@ringNameLabel.text = value
end