Skip to content

Instantly share code, notes, and snippets.

View dmrd's full-sized avatar

David Dohan dmrd

View GitHub Profile
@dmrd
dmrd / lavalamp.ino
Created February 19, 2013 05:10
COS426 - L1 - Hello Arduino Diffused led
// Lava lamp code for HCI (COS 436/ELE 469)
/*
There are 4 effective LEDs in the circuit controlled by the Arduino
Uno. One is an RGB LED, one is 2 red LEDs in series, one is a green
LED, and one is a blue LED. We have created a mapping to control how
each LED turns on with the softpot.
Each LED X has 3 associated variables. First, the variable X is the
number of the pin that will provide the PWM to control the light
@dmrd
dmrd / imdb
Created March 4, 2014 04:49
Simple IMDB scraping script
# Simple IMDB scraping script
# David Dohan
import urllib2
import bs4
import sys
import time
import json
def scrape_movies(url):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dmrd
dmrd / iclr_papers.org
Created April 28, 2016 20:53
Rough notes on a bunch of ICLR conference papers

Repeated topics

Attention

Memory

Reinforcement learning

Efficient NNs

Bayesian methods

Variational inference

neural turing machines

transfer learning

adversarial networks and examples

@dmrd
dmrd / IntroToJulia.ipynb
Created April 29, 2016 01:14
Notebook walking through a few Julia examples
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dmrd
dmrd / .block
Last active May 13, 2017 16:43
V4 simple network graph
license: mit
@dmrd
dmrd / gpt
Last active November 14, 2021 02:03
query gpt from command line
#!/usr/bin/env python3
# Query GPT3 API
import openai
import fire
# API_KEY = os.getenv("OPENAI_API_KEY")
openai.api_key = "FAKE_KEY"
def gpt(prompt,