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
blingee:1 | |
blingee:10012901 | |
blingee:10017901 | |
blingee:10021601 | |
blingee:10050901 | |
blingee:10073101 | |
blingee:101 | |
blingee:10145701 | |
blingee:1017201 | |
blingee:101801 |
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
function ia-check() { | |
echo $(curl -s -m60 "https://web.archive.org/web/*/$(echo "$*" | sed 's# #%20#g;s#/$#/\*#')" | | |
head -c10KB | | |
grep -m1 -Poi "(Saved <strong>\d+ time(s)?)|((\d+,)*\d+ URLs have been captured for this domain)|(Page cannot be crawled or displayed due to robots\.txt)|(This URL has been excluded from the Wayback Machine)|(Wayback Machine doesn't have that page archived)|(504 Gateway Time-out)" | | |
sed "s#'#'#g;s#<strong>##") | |
} |
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 pylab | |
pylab.figure(1) | |
pylab.title("High Temperature Differences for Boston in July") | |
pylab.xlabel("Days") | |
pylab.ylabel("Temp differences") | |
values = dict() | |
xvalues, yvalues = list(), list() | |
file = open('./julyTemps.txt', 'r') |
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
# 6.00x Problem Set 7: Simulating robots | |
import math | |
import random | |
import ps7_visualize | |
import pylab | |
# For Python 2.7: | |
from ps7_verify_movement27 import testRobotMovement |
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
#!/usr/bin/env python2.7 | |
''' | |
Nootan, a monstrosity of a Newton method program. | |
Rules: | |
Use on polynomials. Examples: | |
x^2 | |
2x^3+8x^2-9x+9 | |
-3x^{5}-6x^{4}+7x^{3}-5x^{2}+4 |
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
#!/usr/bin/ruby | |
# | |
# I recommend using Pocket to do the export. It works better than the browser extensions. | |
require 'rubygems' | |
require 'htmlentities' | |
require 'csv' | |
# CHANGE THIS | |
input_file = '/path/to/passwords.csv' |