Skip to content

Instantly share code, notes, and snippets.

View rbrigden's full-sized avatar

Ryan Brigden rbrigden

  • @inokyo
  • San Francisco, CA
View GitHub Profile
@rbrigden
rbrigden / startupy_domains.txt
Last active May 29, 2017 05:09
Every english word that is currently available for registration as a full domain (TLD included).
abdominocardi.ac
autotr.actor
cephalotr.actor
cocontr.actor
coen.actor
cornf.actor
counter.actor
effr.actor
idemf.actor
lithofr.actor

Keybase proof

I hereby claim:

  • I am rbrigden on github.
  • I am rbrigden (https://keybase.io/rbrigden) on keybase.
  • I have a public key ASC8BblZeXDpMM3sqyN4ikMdSgUKf-iwFBtjUVJgdRJ4Bwo

To claim this, I am signing this object:

require 'mechanize'
require "httparty"
class DirectoryAPI
def initialize
@token = 'nJ+gXjL+ZpbdhuNR700AT7H3AEQ5r2/zB1+8DSWAl/Y='
@base_url = 'https://directory.andrew.cmu.edu/'
@mechanize = Mechanize.new
#
# VPython shell program to display and plot the Earth's motion about the Sun,
# including its angular momentum vector and its Runge-Lenz vector.
#
from visual import *
from visual.graph import *
#
# Define the display window. The range sets the scale for all arrows.
#
display(title = 'Planetary Orbit', width = 600, height = 600, range = 3e11)
@rbrigden
rbrigden / solar_system.py
Created September 17, 2015 14:37
planet orbit simulation project for 33-151 in vpython
# simulate the solar system
# Author: Ryan Brigden
# 33-151: M&I I
# planet and orbital data from:
# http://nssdc.gsfc.nasa.gov/planetary/factsheet/planet_table_ratio.html
# http://education.nationalgeographic.com/activity/planetary-size-and-distance-comparison/
# http://www.sjsu.edu/faculty/watkins/orbital.htm
from visual import *
@rbrigden
rbrigden / recorder.py
Created September 15, 2015 01:11
some sample code from a program that opens a web audio stream and records it to a file
class Recorder:
def __init__(self):
self.log = logging.getLogger('capturadio.recorder')
self.start_time = None
def capture(self, show):
config = Configuration()
self.log.info(u'capture "%s" from "%s" for %s seconds to %s' %\
(show.name, show.station.name, show.duration, config.destination))
#!/usr/bin/python
# Welcome to the classic game of Snake! Follow the instructions in the lesson
# to complete the code and play the game. Have fun!
# author: Ryan Brigden
# date: 6/11/15
# import modules
import pygame, random, sys