Error: VM Exception while processing transaction: revert
-> make sure you've setuint public initialBalance = 10 ether;
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
#!/usr/bin/env python3 | |
import subprocess | |
if __name__ == "__main__": | |
current_branch = subprocess.check_output(["git", "branch", "--show-current"]).rstrip() | |
if not current_branch: | |
raise Exception("need to be checked out to a named git branch") | |
merged_branches_with_upstream = subprocess.check_output( | |
["git", "branch", "--format", "%(refname:short) %(upstream:short)", "--merged"] |
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
set ignorecase smartcase | |
set autoindent smartindent | |
set gdefault hlsearch incsearch showmatch | |
set expandtab softtabstop=4 shiftwidth=4 | |
syntax on | |
set laststatus=2 | |
set ruler | |
set nobackup noswapfile noundofile | |
set cursorline |
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/zsh | |
set -euo pipefail | |
local preall=$(brew list -1) | |
local predeps=$(brew deps --installed) | |
local preleaves=$(brew leaves) | |
recur() { | |
local pkg=$1 |
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
.PHONY: all clean | |
all: $(patsubst %.tex, %.pdf, $(wildcard *.tex)) | |
%.pdf: %.tex | |
latexrun $< | |
%.tex: preamble.sty | |
clean: | |
rm -rf *.log *.aux *.out *.pdf *.bbl *.blg |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.38308101892471313</real> |
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
'use strict'; | |
const bcash = require('bcash').set('testnet'); | |
const Logger = require('blgr'); | |
//const logger = new Logger({ level: 'info' }); | |
// SPV chains only store the chain headers. | |
const chain = new bcash.Chain({ | |
memory: false, |
steps:
- npm install (-g)
bclient
which providesbwallet-cli
- make sure your
~/.bcoin/wallet.conf
containsnetwork: testnet
- run an spv node on btc testnet (
bcoin --network testnet --spv
, or you could spawn one programmatically) - wait until it’s fully synced
- get the receive address of the “default” account (
bwallet-cli account get default
) - send some btc testnet from a faucet to that address
bwallet-cli balance
should immediately show some unconfirmed amount- wait until the tx gets 1 conf, now the amount that was previously unconfirmed should show both as confirmed and unconfirmed
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
wget https://github.com/github/gitignore/raw/master/Global/Vim.gitignore -O ~/.gitignore.global && git config --global core.excludesfile ~/.gitignore.global |
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
#!/usr/bin/perl | |
# Last tested: 2017-01-22 | |
use strict; | |
use warnings; | |
my $lesson_id = $ARGV[0]; | |
for (my $page_id = 1; ; ++$page_id) { | |
my $url = "http://delos.uoi.gr/opendelos/search?crs=$lesson_id&sa=$page_id"; | |
my $page = qx{curl --silent "$url"}; |
NewerOlder