%matplotlib inline
from numpy import dot, random, polyfit
from numpy.linalg import norm
from matplotlib.pyplot import plot, show
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using git rebase you can... | |
[08yg2'pygr'ue w' hge 'weg'y8eq' 13rfh29hufg2 f2 hiefpheflqdoq udqs0ysqflwqrl hqsdo8sfo qsoyfoh8i24t;nv2hpewgjppyputpy gpu p upy Tphds0ywefjpdgy80etwhpasgihasdgoyf phqwyot hq py eqtoy qpysfygdpy9 qwrlhiqwtoad8gyasly wasoy ao yqwrlhqw. | |
y83tqoy8t3 tpq et0 qerpqejqey qh pqy qwr-yqt[u93tqpy9gqepy tqy9 -qrhp3 py3 3ry31y2p hfey 0fqrp gpwygh ry0fh43wri7eldgkt ht34 goyw gol wrlsfvy94pygor pho 2oy 2oey8 24 gwgo orh2o ft9ydwlhfwdkdfhdflieqo 2oy2 4tdo8fouywf pdgfo sho qo he o tt . | |
Sounds easy, right? |
I hereby claim:
- I am itsbenweeks on github.
- I am itsbenweeks (https://keybase.io/itsbenweeks) on keybase.
- I have a public key whose fingerprint is 0E6A 1EF8 9F93 04A8 3F0B 6FEE C252 80D9 CFD9 1798
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
GHE_URI = "http://github.mit.edu/api/v3" | |
GHE_TOKEN = open('GHE_TOKEN', 'r').read()[:-1] | |
S = requests.Session() | |
S.headers.update({u'Authorization': u'token {0}'.format(GHE_TOKEN)}) | |
S.headers.update({u'Time-Zone': u'America/New_York'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
A number of functions to rename and modify edXml video tags in order to make them mobile ready. | |
.. note:: This assumes that the csv file is ordered youtube_id, edx_id | |
""" | |
import sys |
The Winkel tripel projection is available as d3.geo.winkel3
in the geo.projection D3 plugin. See also the rotating version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Mercator Projection</title> | |
<style> | |
path { | |
fill: #ccc; | |
stroke: #fff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find / -name "C100A*" | while read f | |
do | |
mv "${f}" "${f/C100A/}" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_courseware(screens): | |
mw.goto("courses/") | |
courses = {} | |
for info_element in mw.driver.find_elements_by_css_selector("article.course"): | |
course = info_element.text() | |
courses[course]={"url":self.url+"courses/"+info_element.get_attribute("id")} | |
for course in information.keys(): | |
courses[course]={"courseware_links":[]} | |
mw.driver.get(information[course]["url"]+"/courseware") | |
for chapter in mw.driver.find_elements_by_css("div.chapter"): |