start new:
tmux
start new with session name:
tmux new -s myname
import { push, replace, setOnboardingStep } from 'actions'; | |
let step = null; | |
let finalStep = 'STEP_C'; | |
const steps = { | |
STEP_A: { url: '/feature_1', nextStep: 'STEP_B' }, | |
STEP_B: { url: '/feature_2', nextStep: 'STEP_C' }, | |
STEP_C: { url: '/feature_3', nextStep: 'STEP_D' }, |
require('babel-register') | |
const express = require('express') | |
const React = require('react') | |
const ReactDOMServer = require('react-dom/server') | |
const ReactRouter = require('react-router') | |
const ServerRouter = ReactRouter.ServerRouter | |
const App = require('./src/App').default | |
const path = require('path') | |
const Helmet = require('react-helmet') | |
const compression = require('compression') |
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Component.extend({ | |
displayInternals: computed('model.totalPermutations', 'model.totalEssence', 'model.availableEssence', 'model.totalAttack', 'model.totalMana', 'model.totalMagic', 'model.noxinDamage', 'model.necroDamage', 'model.maxFloorReachable', 'model.noxinMaxFloor', 'model.necroMaxFloor', function() { | |
return { | |
totalEssence: this.get('model.totalEssence'), | |
totalAttack: this.get('model.totalAttack'), | |
totalMana: this.get('model.totalMana'), |
import Ember from 'ember'; | |
import { createCube, createSimpleCube } from 'app/utils/three-build'; | |
function degreesToRadians(degrees) { | |
return degrees * Math.PI / 180.0; | |
}; | |
const HEIGHT = 800; | |
const WIDTH = 800; |
// Named constants with unique integer values | |
var C = {}; | |
// Tokenizer States | |
var START = C.START = 0x11; | |
var TRUE1 = C.TRUE1 = 0x21; | |
var TRUE2 = C.TRUE2 = 0x22; | |
var TRUE3 = C.TRUE3 = 0x23; | |
var FALSE1 = C.FALSE1 = 0x31; | |
var FALSE2 = C.FALSE2 = 0x32; | |
var FALSE3 = C.FALSE3 = 0x33; |
import Ember from 'ember'; | |
import Game from 'app/three/game'; | |
export default Ember.Component.extend({ | |
didInsertElement() { | |
const three = new Game(this.$()); | |
this.set('three', three); | |
three.start(); | |
} |
import React from 'react'; | |
import ReactDom from 'react-dom'; | |
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; | |
import TextField from 'material-ui/TextField'; | |
const App = () => ( | |
<MuiThemeProvider> | |
<TextField hintText="my cool hint text" /> | |
</MuiThemeProvider> | |
); |
import Ember from 'ember'; | |
import sha3 from 'app/sha3'; | |
import othersha from 'app/othersha'; | |
const RUN_TIMES = 2000; | |
export default Ember.Controller.extend({ | |
appName: 'Example', | |
inputValue: 'example', |
pragma solidity ^0.4.8; | |
contract Token { | |
event Transfer(address indexed from, address indexed to, uint256 value); | |
function transfer(address _to, uint256 _value); | |
function balanceOf(address) returns (uint256); | |
} | |
contract owned { | |
address public owner; |