I hereby claim:
- I am aksiksi on github.
- I am aksiksi (https://keybase.io/aksiksi) on keybase.
- I have a public key ASC5Xk7XO42Q_4mUVJ7PjgnZzGzQHhCSACBaOG3JwmfR4Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import subprocess | |
class SpeedTest(object): | |
datacenters = [ | |
{ | |
'name': 'NYC1', | |
'host': 'speedtest-nyc1.digitalocean.com', | |
'ip': '198.211.112.36', | |
'location': 'New York, USA', |
program Hello; | |
uses sysutils; | |
// Record syntax | |
type Book = record | |
title: string; | |
author: string; | |
isbn: string; | |
end; |
#!/usr/bin/python | |
''' | |
Outputs a Cadence ADE stimulus file for n input vectors. | |
Supports Python 2.x only. I created this for use on a RHEL | |
box running Cadence. | |
Global variables | |
SOURCE: the source type generated for each bit of the vectors. |
################################################################# | |
## Written by: Assil Ksiksi ## | |
## ## ## ## | |
## Scrapes IMDB for movie IDs, makes API requests, then writes ## | |
## the results to a database. ## | |
## ## ## ## | |
################################################################# | |
import re, requests, sqlite3, json, time |
# Finds a root of a number using Newton's method. Outputs the first 5 approximations. | |
def newton(n, x): | |
x1 = x - (x*x-n)/(2*x*x) | |
return x1 | |
root = float(raw_input("Enter a number to approximate the square root of: ")) | |
approx = float(raw_input("Enter approximation for root: ")) | |
print '' |
import urllib2 | |
import time | |
s = time.time() | |
sources = {'week': 0, 'month': 0, 'year': 0} | |
for type in sources.iterkeys(): | |
response = urllib2.urlopen("http://www.goodreads.com/book/most_read?category=all&country=all&duration=" + type[0]) | |
sources[type] = response.read() |
# Uses httplib2 instead of urllib2 - runs faster | |
#import urllib2 | |
import httplib2 | |
import time | |
s = time.time() | |
game_console = {} |
from random import choice | |
types = [ | |
map(chr, range(97, 123)), | |
map(chr, range(65, 91)), | |
range(0, 10) | |
] | |
def password_gen(length): # Generates a random password | |
password = [] |