Skip to content

Instantly share code, notes, and snippets.

@pselle
pselle / terraform.tfstate
Created July 10, 2019 17:01
Example of for_each in statefile
{
"version": 4,
"terraform_version": "0.12.4",
"serial": 55,
"lineage": "7468d9d0-35f4-0178-6054-5cddfc07a1b5",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "random_pet",
@pselle
pselle / midireader.py
Created January 9, 2019 17:24
Midi reader (from Jamie)
import mido
from mido import Message
from mido import MidiFile
def lyrics_tracks(mid):
return [track for track in mid.tracks if has_lyrics(track)]
def lyrics(mid):
@pselle
pselle / wanted.json
Created April 9, 2018 14:19
Cell list for robot.bingo April 2018
[
"aws",
"workloads",
"dynamodb",
"redshift",
"efs",
"sdk",
"endpoint",
"json",
"github",
@pselle
pselle / frequent-words.txt
Created April 9, 2018 14:15
Words generated from re:invent 2017 transcripts
The 50 most frequent words are
[('aws', 1280.2),
('workloads', 785.0),
('dynamodb', 744.0),
('redshift', 492.0),
('efs', 488.0),
('sdk', 472.0),
('endpoint', 437.0),
('json', 431.0),
('github', 402.0),
@pselle
pselle / lambda.log
Created July 14, 2016 17:40
process.config in lambda
START RequestId: 5c68fab1-49e9-11e6-ae9c-756632179627 Version: $LATEST
2016-07-14T17:35:30.803Z 5c68fab1-49e9-11e6-ae9c-756632179627 { target_defaults:
{ cflags: [],
default_configuration: 'Release',
defines: [],
include_dirs: [],
libraries: [] },
variables:
{ asan: 0,
gas_version: '2.25',
#!/usr/bin/env node
var encouragements = [
"You look swell today",
"It's all going to be okay",
"You are so smart and capable!",
"Programming is hard sometimes, and you're pretty great at it",
"You can do this!",
"Have a snack after you fix this bug",
"You're an inspiration",
#!/usr/bin/env node
console.log("BUTTS! (‿ˠ‿)")

NodeTogether Curriculum

Step 0. git Up and Running

Github

Github is where we will store all our code and collaborate on it with others. Make an account here: https://github.com/

git

git is a way to keep track of your projects as they change.

@pselle
pselle / env.js
Created May 4, 2015 20:13
Env.js Example
process.env['CONSUMER_KEY'] = ""
process.env['CONSUMER_SECRET'] = ""
process.env['ACCESS_TOKEN_KEY'] = ""
process.env['ACCESS_TOKEN_SECRET'] = ""