Skip to content

Instantly share code, notes, and snippets.

@agoodman
agoodman / addon-docs.md
Created January 20, 2013 00:39
Uptimetry Addon Docs

Uptimetry is an add-on for monitoring your app's vital resources. Think of it as real-time view testing. Make sure your sign up page is displaying correctly by confirming HTTP 200 OK and matching content in the response via CSS selector or XPath. Receive email when your page is not rendering as designed.

Provisioning the add-on

Uptimetry can be attached to a Heroku application via the CLI:

A list of all plans available can be found at http://addons.heroku.com/uptimetry.
@agoodman
agoodman / chipotle.json
Created November 14, 2013 18:36
standard Chipotle order
{“salad”:{“meat”:”carnitas”,”beans”:”black”,”rice”:null,”addons”:{“salsa”:[“mild”,”hot”],”sour_cream”:true,”cheese”:true,”guacamole”:true}}
@agoodman
agoodman / api_batch.rb
Created January 9, 2014 16:29
Split one WAV file into many clips of 30sec duration
#!/usr/bin/env ruby
# Submit all WAV clips to AT&T Speech API
require 'thread'
require 'rest-client'
require 'json'
src_hash = ARGV[0]
index = ARGV[1].to_i
bearer_token = ARGV[2]
@agoodman
agoodman / favorite_juice_recipe.json
Created January 26, 2014 16:50
Aubrey's favorite juice recipe
{
"ingredients" : {
"pear" : 1.0,
"apple" : 1.0,
"kale" : {
"quantity" : 6.0,
"unit" : "stalk"
},
"ginger" : {
"notes" : "about the size of your thumb"
@agoodman
agoodman / quad.py
Created August 7, 2019 00:30
Python/OpenCV video clip joining tool takes four clips and produces one 2x2 clip without audio
#!/usr/bin/env python3
import numpy as np
import cv2
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-tl")
parser.add_argument("-tr")
parser.add_argument("-bl")
parser.add_argument("-br")
// aubranium mun lander mk1
clearscreen.
set gravity to (constant():G * body:mass) / body:radius^2.
set targetAltitude to 80000.
set munarAltitude to 25000.
set targetLng to -30.
set maxTWR to 3.
// aubranium minmus lander mk1
clearscreen.
set gravity to (constant():G * body:mass) / body:radius^2.
set targetBody to minmus.
set targetAltitude to 80000.
set munarAltitude to 25000.
set targetLng to -30.
@agoodman
agoodman / booster.ks
Created June 14, 2022 01:35
First stage kOS script for reusable orbital operations
// SpaceX-style super heavy booster launch and land script
// by aubranium
//
// designed to be used with FatBoyMk2.craft
//
// hoverslam code borrowed from an unknown SpaceX engineer on the internet and modified
set runmode to 1.
clearscreen.
@agoodman
agoodman / ship.ks
Created June 14, 2022 01:40
Second stage kOS script for reusable orbital operations
// SpaceX-style starship orbital ascent and mun transfer and landing
// by aubranium
//
// designed to be used with FatBoyMk2.craft
//
// hoverslam code borrowed from an unknown SpaceX engineer on the internet and modified
set runmode to 1.
clearscreen.
@agoodman
agoodman / FatBoyMk2.craft
Created June 14, 2022 01:41
Craft file used by reusable orbital operations scripts
ship = FatBoyMk2
version = 1.12.3
description =
type = VAB
size = 6.56177616,36.626236,8.55856133
steamPublishedFileId = 0
persistentId = 4004953459
rot = 0,0,0,0
missionFlag = Squad/Flags/default
vesselType = Debris