Adapted from Blockchain revolution:
- cryptocurrencies (BTC)
- platforms/smart contracts (ERC-20 + Cosmos, Aion, ICON)
- work/utility token (FileCoin, Golem) + via Selkix
- “securitized” computing resources
Adapted from Blockchain revolution:
class NameForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { name: '' }; | |
} | |
handleChange = (event) => { | |
this.setState({[event.target.name]: event.target.value}); | |
} |
pragma solidity ^0.4.23; | |
import "./HumanStandardToken.sol"; | |
import "../../LedgerChannel.sol"; | |
contract ReentrancyToken is HumanStandardToken { | |
LedgerChannel ledgerChannel; | |
uint256 constant MAX_REENTRIES = 5; | |
uint256 numReentries = 0; |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
#!/usr/bin/env bash | |
# French Guide : https://github.com/FredBezies/arch-tuto-installation | |
# Install ARCH Linux with UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M status=progress && sync # on linux |
// This is universal, works with Infura -- set provider accordingly | |
const ethers = require('ethers') | |
//const provider = ethers.getDefaultProvider('rinkeby') | |
const provider = new ethers.providers.JsonRpcProvider(process.env.WEB3_URL) | |
function hex_to_ascii(str1) { | |
var hex = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hex.length; n += 2) { |
#!/bin/bash | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# kevin gallagher (@ageis) <[email protected]> | |
# normally I divide this into separate files: .bashrc, .bash_profile, .bash_aliases and .bash_functions (also .bash_logout), but it's all concatenated here. | |
ulimit -s unlimited | |
export MYUID=$(id -u) | |
export USER="$(id -un)" | |
if [[ "$TILIX_ID" ]] || [[ "$VTE_VERSION" ]]; then |
function diff-branch() { | |
if [ -z $1 ]; then | |
echo please provide an branch | |
read WORKBRANCH | |
else | |
WORKBRANCH=$1 | |
fi | |
if [ -z $2 ]; then | |
STABLEBRANCH='master' |
import json | |
import os | |
from collections import defaultdict | |
from json import JSONDecodeError | |
from pprint import pprint | |
from typing import Dict, Union, List | |
import requests | |
from bs4 import BeautifulSoup |