Skip to content

Instantly share code, notes, and snippets.

View jwasinger's full-sized avatar
💭
👍

jwasinger

💭
👍
View GitHub Profile
@jwasinger
jwasinger / gist:45709837f1692586bb4f
Created March 21, 2016 21:22
Failed build output from angular master branch
Dart SDK is not available, Dart tasks will be skipped.
[14:12:54] Using gulpfile ~/projects/angular/gulpfile.js
[14:12:54] Starting 'build/clean.js'...
[14:12:54] Starting 'build/clean.tools'...
[14:12:54] Starting 'build/clean.dart'...
Dart SDK is not available. Skipping task: build/clean.dart
[14:12:54] Finished 'build/clean.dart' after 91 μs
[14:12:54] Starting 'build/clean.docs'...
[14:12:54] Starting 'build/clean.bundles'...
[14:12:54] Starting 'build/clean.bundles.benchpress'...
\documentclass[10pt,draftclsnofoot,onecolumn]{IEEEtran}
\usepackage{graphicx}
\graphicspath{ {/} }
\title{Random Network Coding}
\author{Jared Wasinger, Chris Kennard, Hampus Hammarlund}
\begin{document}
\maketitle
\begin{abstract}
% LaTeX resume using res.cls
\documentclass[margin]{res}
%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent} % uses new century schoolbook postscript font
\setlength{\textwidth}{5.1in} % set width of text portion
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item Write a regular expression for all strings of letters that come from the alphabet $\sigma=\{a,b\}$ that start with either \textbf{aa} or \textbf{bb}, followed by a string of 0 or more b's, and ends with a single a [10 points]
\item Using Thompson's Construction, create a NFA that accepts the strings from the regular expression above. [10 points]
\item Using the Subset Construction, create a DFA from the NFA above. [10 points]
\item Try to merge states to get the smallest machine possible. When you merge states, provide a justification for why the states may be merged. [10 points]
> ethereumjs-vm@2.1.0 test /home/jwasinger/projects/ethereumjs-vm
> node --harmony ./tests/tester -a
/home/jwasinger/projects/ethereumjs-vm/node_modules/ethereumjs-testing/index.js:22
}, async (err, content, fileName, next) => {
^
SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
@jwasinger
jwasinger / gist:f0f62d47320989af5b5be5f32cf2d983
Created July 16, 2017 18:56
ethereum state trie dump errors
# file: callcodecallcodecallcode_ABCB_RECURSIVE test: callcodecallcodecallcode_ABCB_RECURSIVE
ok 631 the state roots should match
stream.on data.key: 03601462093b5945d1676df093446790fd31b20e7b12a2e8e5e09d068109616b
stream.on data.value: f84c01880de0b6b3a75b5482a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5
e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
acnt.balance: 0de0b6b3a75b5482
acnt.nonce: 01
acnt.codeHash: c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
not ok 632 invalid account in the trie: 03601462093b5945d1676df093446790fd31b20e7b12a2e8e5e09d068109616b
---
@jwasinger
jwasinger / gist:65c950fc203ec535820f61e55768ddc6
Created July 23, 2017 08:22
Pyethereum trace for ZeroValue_CALL_ToOneStorageKey_OOGRevert
ethereum/tests/test_state.py DEBUG:root running test:'ZeroValue_CALL_ToOneStorageKey_OOGRevert' in '../fixtures/GeneralStateTests/ZeroValue_CALL_ToOneStorageKey_OOGRevert.json'
Verifying state test
Testing for EIP158
Checking for values: g 135000 v 0 d (indexes g 0 v 0 d 0)
{'balance': '1000000000000', 'nonce': '0', 'code': '0x', 'storage': {}}
{'balance': '0', 'nonce': '0', 'code': '0x', 'storage': {'0x00': '0x01'}}
{'balance': '0', 'nonce': '0', 'code': '0x5a6000556000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61ea60f1600155600c600255600c600355600c6004555a606455', 'storage': {}}
DEBUG:eth.pb.tx TX NEW txdict={'nonce': 0, 'gasprice': 1, 'startgas': 135000, 'to': '0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b', 'value': 0, 'data': '0x', 'v': 27, 'r': 73942451380967095089472681902514471621169943983564005432453481822324203053634, 's': 10338793112310849980114271989097570465192049685413144024875704173556981048295, 'sender': '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b', 'hash': '0xdaca90c386851641851
{
"TransactionDataCosts652" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "10000000",
"currentNumber" : "1",
"currentTimestamp" : "1000",
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
{
"badOp" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "10000000",
"currentNumber" : "1",
"currentTimestamp" : "1000",
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
@jwasinger
jwasinger / badOpFiller.json
Created August 14, 2017 01:19
Filler for test incorporating deprecated SSIZE
{
"badOp" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x20000",
"currentGasLimit" : "1000000",
"currentNumber" : "1",
"currentTimestamp" : "1000",
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},