I hereby claim:
- I am bneiluj on github.
- I am bneiluj (https://keybase.io/bneiluj) on keybase.
- I have a public key whose fingerprint is 5F35 46F6 85E9 8C45 82EB 57D5 1DD9 A932 591F A928
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 | |
}; | |
} |
I hereby claim:
To claim this, I am signing this object:
/// @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 |
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; |
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.
(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' |