Skip to content

Instantly share code, notes, and snippets.

View jbrill's full-sized avatar

Jason Brill jbrill

View GitHub Profile
@frozeman
frozeman / createContract.js
Last active September 5, 2018 18:57
Deploy contracts on Ethereum and reliable get the contract address
// -> Soldity
// **********
// Your Soldity contract
event Created(bytes32 indexed identifier);
contract MyContract {
function MyContract(bytes32 identifier) {
Created(identifier);
}
@AdnoC
AdnoC / download_submit370.sh
Created January 15, 2017 02:12
Let you submit EECS370 projects from your local computer
#/bin/sh
# Usage: Download the scripts needed to submit EECS370 projects and modifies them to run.
# The scripts are downloaded to the current directory.
# This script may break if the instructors modify the submission scripts.
# NOTE: You will probably need to download some perl modules to run submit370.
# I got it to work by installing Email::Date::Format
# Using `cpan Email::Date::Format` _should_ have worked, but I couldn't cpan working
# On Ubuntu 14.04 (on Windows Subsystem for Linux) I got it working by calling
@thobbs
thobbs / strip_border.py
Created August 28, 2018 05:46
Strip the border from an SVG for plotting through Inkscape
import sys
import lxml.etree as le
def main(filename):
with open(filename, 'r+b') as f:
doc = le.parse(f)
# strip border strokes
for elem in doc.xpath('//*[attribute::style]'):
if 'stroke:none' in elem.attrib['style']: