(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.
One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.
An alternative version of this design automatically invokes the base constructor in most situations.
contract SimpleAuction { | |
// Parameters of the auction. Times are either | |
// absolute unix timestamps (seconds since 1970-01-01) | |
// or time periods in seconds. | |
address public beneficiary; | |
uint public auctionStart; | |
uint public biddingTime; | |
// Current state of the auction. | |
address public highestBidder; |
/// @title Voting with delegation. | |
contract Ballot { | |
// This declares a new complex type which will | |
// be used for variables later. | |
// It will represent a single voter. | |
struct Voter { | |
uint weight; // weight is accumulated by delegation, weight = 1 when | |
// the chairman gives right to vote to the voter | |
bool voted; // if true, that person already voted | |
address delegate; // person delegated to |
I hereby claim:
To claim this, I am signing this object:
import * as constants from './../constants'; | |
import axios from 'axios'; | |
import config from './../config'; | |
function fetchProductsType(products) { | |
return { | |
type: constants.FETCH_PRODUCTS, | |
payload: products | |
}; | |
} |
0x4d37Cd12a49dAFD900A85D6CaDe82ae7a589bb86 |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
0xbcf70f1e54d27bd83be15b93a28252e16caef9c9 |