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 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']: |
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/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 |
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
// -> Soldity | |
// ********** | |
// Your Soldity contract | |
event Created(bytes32 indexed identifier); | |
contract MyContract { | |
function MyContract(bytes32 identifier) { | |
Created(identifier); | |
} |