Skip to content

Instantly share code, notes, and snippets.

@nickloewen
nickloewen / bret_victor-reading_list.md
Last active March 7, 2024 18:14
Bret Victor’s Reading List

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 July 10, 2013 23:27
arduino teensy3 + MPU-6050 accelerometer
/* 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 December 11, 2015 09:59
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. ;)
#!/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 July 13, 2012 04:27
Quickly shows the most reasonable USD lowest asker and highest bidder from bitcoincharts.com
#!/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"]}