Skip to content

Instantly share code, notes, and snippets.

View clamytoe's full-sized avatar
💭
Striving to learn something new each day.

Martin Uribe clamytoe

💭
Striving to learn something new each day.
View GitHub Profile
@clamytoe
clamytoe / download_images.py
Created August 21, 2015 15:20
While developing my memory game for a Python class, I was in need of some nice icon images. I scraped the image tags from http://snwh.org/paper/icons/ and saved them as paper_icons.html. I then wrote this script to download them...
import urllib2
fname = 'paper_icons.html'
handle = open(fname, 'r')
images = list()
count = 0
for line in handle:
line = line.rstrip()
tags = line.split()
@clamytoe
clamytoe / Week1-01.ipynb
Last active August 29, 2015 14:27
HKUSTx: COMP107x Introduction to Mobile Application Development using Android
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@clamytoe
clamytoe / net_ops.py
Last active August 29, 2015 14:26
Little utility that I cooked up to convert numbers between binary, hex, and decimal. It also converts MAC address > to binary > to decimal.
__author__ = 'muribe'
"""
Little utility that I cooked up to convert numbers between binary, hex, and decimal.
If a MAC address in the following format is entered:
00-11-8a-2d-ff-ff
It returns the following binary:
# Silly little program to calculate my grades in Coursera's
# Programming for Everybody (Python)
__author__ = 'clamytoe'
from bs4 import BeautifulSoup
# global variable to hold all of the grades
class_grades = dict()
def parse_quiz():