shift + ⌘ + p
-- toggle command palette
⌘ + /
-- toggle line/selection comment
alt + shift + s
-- show available snippets
var tagname = 'p'; | |
var aView = React.createClass({ | |
render: function() { | |
return React.DOM[tagname]({}, 'here is some content'); | |
} | |
}); |
# The following will allow you to use URLs such as the following: | |
# | |
# example.com/anything | |
# example.com/anything/ | |
# | |
# Which will actually serve files such as the following: | |
# | |
# example.com/anything.html | |
# example.com/anything.php | |
# |
pragma solidity ^0.4.18; | |
// import './SomeContract.sol'; | |
contract HelloYou { | |
event Hello(address you); | |
function sayHello() public { | |
address _person = msg.sender; | |
module.exports = { | |
promisify: function (web3) { | |
// Pipes values from a Web3 callback. | |
var callbackToResolve = function (resolve, reject) { | |
return function (error, value) { | |
if (error) { | |
reject(error); | |
} else { | |
resolve(value); | |
} |
Ethereum is a trustless network of VMs which run smart contracts submitted by users. It uses proof-of-work to synchronize state across the network, and has every node execute the contracts in order to verify the state's validity. Each transaction is stored in the blockchain for replayability. Read more about it here.
Ethereum's "trustless network" model has some disadvantages:
import transitions from './transitions.css'; | |
export default () => ( | |
<ReactCSSTransitionGroup transitionName={transitions}> | |
{ ... } | |
</ReactCSSTransitionGroup> | |
); |
# Usage: IE={box} vagrant up | |
# | |
# Eg. IE=XPIE6 vagrant up | |
boxes = { | |
"XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
"XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9", |
// pseudocode | |
const { ReactCDK, App, Stack } = require('@aws-cdk/react') | |
const Bucket = require('@aws-cdk/react/s3') | |
const { CloudFrontDistribution, Origins, DefaultOrigin } = require('@aws-cdk/react/cloudfront') | |
const { Api, Resource, Integration } = require('@aws-cdk/react/apigateway') | |
const Lambda = require('@aws-cdk/react/lambda') | |
const EchoLambda = ( | |
<Lambda> | |
{ |