Skip to content

Instantly share code, notes, and snippets.

@afomi
afomi / states.csv
Last active May 17, 2019 05:09
States as a Ruby hash
State Abbreviation
ALABAMA AL
ALASKA AK
ARIZONA AZ
ARKANSAS AR
CALIFORNIA CA
COLORADO CO
CONNECTICUT CT
DELAWARE DE
FLORIDA FL
@afomi
afomi / web-frameworks.txt
Last active April 11, 2019 19:03
Wardley Mapping Web Frameworks
# paste the markup below into http://onlinewardleymaps.com/
title Web Frameworks
component Developer [0.9, 0.70]
component Product Manager [0.85, 0.52]
component Product Owner [0.95, 0.35]
component Designer [0.95, 0.80]
@afomi
afomi / elixir-phoenix-request-flow.html
Last active March 20, 2019 03:23
Elixir Phoenix Request Flow
<h1>
Elixir
</h1>
<div class="diagram">
Visit->Request:http://localhost:4000
Request->App:http://localhost:4000
App->AppWeb:
AppWeb->Router: get "/*path", PageController, :index
Router->Controller: def index
Controller->Model:
@afomi
afomi / content.md
Created February 9, 2019 20:00
Types of Content

Web Content elements

Basic HTML Elements

  • headlines
  • paragraphs - of narrative
  • lists
  • tables
  • image
@afomi
afomi / opengov-wardley-map.txt
Created January 29, 2019 17:16
OpenGov Wardley Map
# paste the markup below into http://onlinewardleymaps.com/
title OpenGov
component User [1.0, 0.8]
component Developer [0.95, 0.45]
component Client [0.98, 0.28]
component Database [0.50, 0.85]
component Email Service [0.45, 0.8]
@afomi
afomi / jsonlines.py
Last active January 27, 2019 05:51
jsonlines blender test
import json
import bpy
import bmesh
def createLine(name, pointList, thickness):
bpy.ops.mesh.primitive_plane_add(size=2, view_align=False, enter_editmode=False, location=(0, 0, 0))
obj = bpy.context.object
me = obj.data
bpy.ops.object.editmode_toggle()
bm = bmesh.from_edit_mesh(me)
@afomi
afomi / substance-io.md
Created January 12, 2019 04:35
Playing with Substance.io

Notes on Substance (the company's javascript repo)

In a previous life, I bumped into the guys at (Substance.io](http://substance.io), who were nifty with javascript and had a full-stack design approach that I particularly enjoyed.

Substance came to mind recently, and I decided to git clone their repository. Upon running the application and visiting it at http://localhost:4001, I got a Cannot GET / response.

I then found the Example Editor repo and started it at http://localhost:5555.

@afomi
afomi / collaborative-healthcare.md
Last active January 8, 2019 15:37
Collaborative Authorship of Ideal Health Care Bill

Original Prompt Suggestion #1

If you could craft your ideal healthcare plan, what would it look like?

Solicit ideas from all parties. Users, providers, physicians

Questions

  • How might we maximize America's fiscal and physical health?
  • How might we maximize fiscal, physical, mental and spiritual health?
@afomi
afomi / workflow-notes.md
Created January 7, 2019 18:52
Notes on Workflow based on van der Aalst's book, Workflow Management

Notes on Workflow

Notes dated Feb 2008, from an old personal wiki.

Based on van der Aalst's book, Workflow Management.


A workflow action must be "a logical unit of work that is carried out as a single whole by one resource" (p.4 van der Aalst). This is known as atomicity.

@afomi
afomi / twits.rb
Created December 26, 2018 17:59
Twitter activity and non-activity
require 'date'
require 'twitter'
# ABOUT THIS SCRIPT
# Purpose:
# * write Twitter followers to a file
# * write Twitter friends to a file who haven't posted in 365 days
# Usage:
# * Get Twitter API keys (at https://developer.twitter.com/) and update the script below with your keys
# * run `git init` to version the text files