Skip to content

Instantly share code, notes, and snippets.

View mujuni88's full-sized avatar

Joe Buza mujuni88

View GitHub Profile
@mujuni88
mujuni88 / tests...EscrowAgent2_test.sol
Created February 26, 2022 22:39
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
import "remix_tests.sol";
import "remix_accounts.sol";
import "../contracts/EscrowAgent.sol";
contract EscrowAgentTest is EscrowAgent {
@mujuni88
mujuni88 / contracts...EscrowAgent.sol
Created February 26, 2022 22:11
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
contract EscrowAgent {
address public agent;
enum Stages {
NONE,
@mujuni88
mujuni88 / contracts...EscrowAgent.sol
Created February 26, 2022 21:06
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
contract EscrowAgent {
address public agent;
enum Stages {
NONE,
[user]
name = Joe Buza
email = joebm08@gmail.com
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
@mujuni88
mujuni88 / Entity.js
Last active September 18, 2018 15:47
Store Template
/*
* Example of an entity/model class
*/
import {
observable,
action
} from 'mobx'
import { setter } from 'mobx-decorators'
@mujuni88
mujuni88 / .gitconfig
Last active July 14, 2017 22:18
My GitHub config file
[user]
name = <name>
email = <email>
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]

Keybase proof

I hereby claim:

  • I am mujuni88 on github.
  • I am joebuza (https://keybase.io/joebuza) on keybase.
  • I have a public key ASAhQlPwM-BYQY2tFYBNQ_f6LZCj-YYVmCuEE1xfRbQUDAo

To claim this, I am signing this object:

var fs = require('fs');
var readline = require('readline');
var Stream = require('stream');
function readFileLineByLine(inputFile, outputFile) {
var instream = fs.createReadStream(inputFile);
var outstream = new Stream();
outstream.readable = true;
outstream.writable = true;