Skip to content

Instantly share code, notes, and snippets.

@afomi
afomi / org.json
Created June 25, 2019 18:20
org.json
{
name: "Sample Organization",
uuid: "unique identifier",
abbreviation: "ORG",
url: "https://example.org",
budget_amount: 173876.23,
budget: {}, // could also be its own detailed object
head_count: 42,
title Walnut Creek Downtown Vacancies
component User [1, 0.45]
component Entrepreneurs [1, 0.25]
component Walnut Creek Downtown Biz [.9, 0.55]
component Vacancies [.4, 0.30]
component Occupancies [.8, 0.35]
component Blight [.6, 0.15]
@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?