Skip to content

Instantly share code, notes, and snippets.

View rmharrison's full-sized avatar

Ryan M Harrison rmharrison

View GitHub Profile
@rmharrison
rmharrison / nested_route_no_children.js
Created August 30, 2016 01:53
Basic router, no children
### app/router.js
Router.map(function() {
this.route('bacon');
});
## app/templates/bacon.js
<h1>Bacon!</h1>
{{outlet}}
@rmharrison
rmharrison / nested_route_directory_mistake.js
Last active August 30, 2016 02:26
What's the mistake in the directory structure?
// app/router.js
Router.map(function() {
this.route('bacons', function() {
this.route('bacon', {path: '/:bacon_id'}, function() {
this.route('aiolis', function() {
this.route('aioli', {path: '/:aioli_id'}); // Hipsters rejoice.
});
});
});
});
@rmharrison
rmharrison / VoluntaryBasicIncome_byIncome.txt
Last active January 27, 2017 04:30
VoluntaryBasicIncome_byIncome
|----------------------|------------|--------------|------------------|--------------------|------------|---------------|
| Individual | Percentile | Gross income | After-tax Income | Contribution (10%) | Benefit | Net |
|----------------------|------------|--------------|------------------|--------------------|------------|---------------|
| Child | 0th | $ 0 | ~$ 0 | $ 20/month | $300/month | +$ 280/month |
| Poverty line | 13th | $ 11,880 | ~$ 10,200 | $ 85 | $300 | +$ 215 |
| Median | 50th | $ 30,000 | ~$ 24,000 | $ 200 | $300 | +$ 90 |
| Mean | 60th | $ 44,500 | ~$ 36,000 | $ 300 | $300 | $ 0 |
| Affluent (Top 10%) | 90th | $110,000 | ~$ 78,600 | $ 650 | $300 | -$ 350 |
| Rich (Top 1%) | 99th | $290,000
@rmharrison
rmharrison / VoluntaryBasicIncome_byMemberClass.txt
Created January 27, 2017 08:13
VoluntaryBasicIncome_byMemberClass
|-------------------------|----------|---------------|
| Membership class | Benefits | Contributions |
|-------------------------|----------|---------------|
| Adult | Yes | Yes |
| Child | Yes | Yes |
| Suspended | No | Yes |
| Incubating (new member) | No | Yes |
|-------------------------|----------|---------------|
@rmharrison
rmharrison / .vimrc
Created July 12, 2017 17:33
Ryan's preferred .vimrc
set tabstop=2
set shiftwidth=2
set expandtab
au FileType javascript setl sw=2 sts=2 et
au FileType python setl sw=4 sts=4 et
au BufNewFile,BufRead *.less set filetype=css
# TinyURL to this script: https://tinyurl.com/gotpandas
# Interactive API: https://anapioficeandfire.com/
# https://raw.githubusercontent.com/joakimskoog/AnApiOfIceAndFire/master/data/characters.json
# https://tinyurl.com/gotchararacters
# Installation
# Requires: python, requests, pandas
# Optional: matplotlib
@rmharrison
rmharrison / keybase.md
Created March 29, 2018 19:54
Keybase federation with github

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@rmharrison
rmharrison / git-graph.png
Last active January 28, 2019 15:29
.bashrc (git-graph)
git-graph.png
@rmharrison
rmharrison / 1-submission-consumption.md
Last active October 11, 2021 00:38
Architectural considerations for FHIR submissions to US Federal Agencies
Individul Batch Stream
Consumption REST GET Flat file WebHook
WebSub (websockets)
Submission REST POST Flat file WebSub Message Bus (Apache Kafka) Message Queue (ActiveMQ, RabbitMQ)
@rmharrison
rmharrison / CustomBashPrompt.png
Last active January 19, 2023 20:52
Custom bash prompt [<user>@<host>:<path> (git branch)]
CustomBashPrompt.png