Skip to content

Instantly share code, notes, and snippets.

@palewire
palewire / .block
Last active August 17, 2023 03:59 — forked from mbostock/.block
World Choropleth
license: MIT
height: 600
border: no
@palewire
palewire / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@palewire
palewire / wardead-splash.py
Last active December 15, 2015 04:19 — forked from ascheink/gitmo-splash.rb
Used to make a montage of faces of California's War Dead for a Facebook poster image. https://www.facebook.com/photo.php?fbid=10151492464488010&set=a.74076168009.73112.5863113009&type=1
import os
import urllib2
from urllib import urlretrieve
from bs4 import BeautifulSoup
# Open our page with all the photos
response = urllib2.urlopen('http://projects.latimes.com/wardead/iraq/')
# Hand it off to BeautifulSoup for HTML parsing
soup = BeautifulSoup(response.read())
# Narrow the page down to just the main body well
@palewire
palewire / Hartnett Command Performance
Created September 30, 2011 20:40 — forked from ryanpitts/Hartnett Command Performance
Let Ubuntu read you the latest @wmhartnett updates from Twitter
curl https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=wmhartnett | grep '<description>.*</description>' | sed -e 's/<\/*description>//g' -e 's/ \/ wmhartnett//g' -e 's/wmhartnett: //g' | espeak