Skip to content

Instantly share code, notes, and snippets.

Avatar

Don Park donpdonp

View GitHub Profile
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active Aug 6, 2020
Bret Victor’s Reading List
View bret_victor-reading_list.md

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@frankamp
frankamp / gist:5971164
Created Jul 10, 2013
arduino teensy3 + MPU-6050 accelerometer
View gist:5971164
/* LED Blink, Teensyduino Tutorial #1
http://www.pjrc.com/teensy/tutorial.html
This example code is in the public domain.
*/
#include <Wire.h>
// Teensy 2.0 has the LED on pin 11
// Teensy++ 2.0 has the LED on pin 6
// Teensy 3.0 has the LED on pin 13
const int ledPin = 13;
@selenamarie
selenamarie / a_better_opml.py
Last active Dec 11, 2015
This grabs URLs associated with the people you follow on Twitter and then tries to scrape RSS feeds from the URLs. You have to get OAUTH creds from dev.twitter.com/apps to do this, and then register the script so that you get the access_token + access_token_secret. Rev 2 actually produces valid OPML. ;)
View a_better_opml.py
#!/usr/bin/env python
import tweepy
from BeautifulSoup import BeautifulSoup as parser
import urllib
import sys
import argparse
import ConfigParser
@colindean
colindean / btc_bid_ask.rb
Created Jul 13, 2012
Quickly shows the most reasonable USD lowest asker and highest bidder from bitcoincharts.com
View btc_bid_ask.rb
#!/usr/bin/env ruby
require "open-uri"
require "json"
#get the data
j = JSON.parse open("http://bitcoincharts.com/t/markets.json").read
#only USD, only active exchanges, and only where there's a bid and ask
j.select! {|x| x["currency"] == "USD" and x["volume"] > 0 and !x["ask"].nil? and !x["bid"].nil?}
#sort, need lowest ask and highest bidder
ask = j.sort {|x,y| x["ask"] <=> y["ask"]}
bid = j.sort {|x,y| x["bid"] <=> y["bid"]}
You can’t perform that action at this time.