Skip to content

Instantly share code, notes, and snippets.

@afomi
afomi / gist:6646d1b9f667072bfb86
Last active August 29, 2015 14:10
policy enforcement
<h1>
App Policies
</h1>
<div class="diagram">
Request->Controller:
Controller->Authorization:
Authorization->EnforcePolicy:
EnforcePolicy->Policy:
Policy->Permissions:defines
</div>
@afomi
afomi / agile-pics-restaurant-example
Last active August 29, 2015 14:10
agile-pics-restaurant-example
<h3>
Restaurant
</h3>
<div class="diagram">
Customer->Host:welcome
Host->Waiting List: add names to List
Host->Waiting List: updating it as Customers are seated
Host->Customer: table is ready
Customer->Server:submits order
@afomi
afomi / agile-pics-data-model-example
Last active August 29, 2015 14:10
agile-pics-data-model-example
<script type="text/vnd.graphviz" id="graphviz">
digraph models_diagram {
graph[overlap=false, splines=true]
"Affiliation" []
"ApiKey" []
"Attachment" []
"Author" []
"Comment" []
"CommentLook" []
"Credential" []
@afomi
afomi / gist:b85a6e83240ebe467912
Last active August 29, 2015 14:10
EMail as Interface
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
"from" -> "email"
"to" -> "email"
"subject" -> "email"
"body" -> "email"
"time" -> "email"
"email" -> "server"
"server" -> "service"
"service" -> "trello"
@afomi
afomi / developing-software-graphviz
Last active August 29, 2015 14:10
developing-software-graphviz
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
"make card" ->
"estimate card" ->
"pick up card (started)" ->
"commit something" ->
"tests pass locally" ->
"push to github" ->
"open WIP pull request" ->
"semaphore build for 10+ ????????" ->
@afomi
afomi / gist:3e7042f6782c94b027bf
Last active August 29, 2015 14:11
Tahi Data Model - 2014-12-10
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
graph[overlap=false, splines=true]
"Affiliation" [shape=Mrecord, label="{Affiliation|id :integer\luser_id :integer\lname :string\lstart_date :date\lend_date :date\lcreated_at :datetime\lupdated_at :datetime\lemail :string\l}"]
"ApiKey" [shape=Mrecord, label="{ApiKey|id :integer\laccess_token :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Attachment" [shape=Mrecord, label="{Attachment|id :integer\lfile :string\lattachable_id :integer\lattachable_type :string\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lcaption :string\lstatus :string\l}"]
"Author" [shape=Mrecord, label="{Author|id :integer\lfirst_name :string\llast_name :string\lcreated_at :datetime\lupdated_at :datetime\lposition :integer\lpaper_id :integer\lactable_id :integer\lactable_type :string\l}"]
"Comment" [shape=Mrecord, label="{Comment|id :integer\lbody :text\lcreated_at :datetime\lupdated_at :datetime\lcommenter_id :integer\ltask_id :integer\lentities :j
@afomi
afomi / gist:62925e8c7fe01fca4aa7
Last active September 10, 2015 23:41
Tahi Data Model
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
graph[overlap=false, splines=true, bgcolor="none"]
"Activity" [shape=Mrecord, label="{Activity|id :integer\lfeed_name :string\lsubject_id :integer\lsubject_type :string\lactivity_key :string\lmessage :string\luser_id :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Affiliation" [shape=Mrecord, label="{Affiliation|id :integer\luser_id :integer\lname :string\lstart_date :date\lend_date :date\lcreated_at :datetime\lupdated_at :datetime\lemail :string\ldepartment :string\ltitle :string\lcountry :string\lringgold_id :string\l}"]
"ApiKey" [shape=Mrecord, label="{ApiKey|id :integer\laccess_token :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Attachment" [shape=Mrecord, label="{Attachment|id :integer\lfile :string\ltask_id :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lcaption :string\lstatus :string\lkind :string\l}"]
"Author" [shape=Mrecord, label="{Author|id :integer\lfirst_name :string\llast_name :string\l
@afomi
afomi / gist:d08b046ecbb9dfbca546
Last active August 29, 2015 14:11
Tahi Environment
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
graph [compound=true];
bugsnag -> "pivotal tracker" [label="processing user feedback and data", ltail="cluster3"];
master -> "feature branch"
"pivotal tracker" -> "feature branch"
"feature branch" -> master
master -> release [label="git branch release-branch"];
@afomi
afomi / mint.js
Last active February 20, 2017 21:20
Access the kindly structured data from Mint.com
// Get the Names and Values of Your Accounts on Mint.com
//
// Once logged into the mint.com,
// paste the following into your Browser's development tools to output the name and values
$ = jQuery;
$.each($(".accounts-data-li"), function(index, value) {
var accountName = $(value).find(".accountName").text();
var balance = $(value).find(".balance").text();
console.log(accountName, ",", balance);
@afomi
afomi / tuio.md
Last active August 29, 2015 14:12
TUIO Things

TUIO

Prerequisites

  • ensure Java is installed
  • download TuioSimulator and unzip it
  • using the command line, cd into the TuioSimulator directory, then run:
java -jar TuioSimulator.jar