made with esnextbin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npx create-react-app wasm-sample |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
test: # 普通のテスト | |
docker: | |
- image: node:8 | |
steps: | |
- checkout | |
- run: npm run test | |
heavy_test: # 重いテスト | |
docker: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("rxjs") | |
const Rx = require("rxjs") | |
const { ActionsObservable } = require("redux-observable") | |
const playgroundEpic = action$ => | |
action$.ofType("FIRST") | |
.map( (a) =>( { type: "THIRD" } ) ) | |
const action$ = ActionsObservable.of({ type: 'FIRST' }, { type: 'SECOND' }) |
made with esnextbin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 元のこんなコードを読み解く | |
// | |
// let DEFINE_PROPERTY = "defineProperty"; | |
// function define(O, key, value) { | |
// O[key] || Object[DEFINE_PROPERTY](O, key, { | |
// writable: true, | |
// configurable: true, | |
// value: value | |
// }); | |
// } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react' | |
import Router from 'react-router/BrowserRouter' | |
import { Match, Link, Redirect } from 'react-router' | |
const First = () => <div>First</div> | |
const Second = () => <div>Second</div> | |
const Third = () => <div>Third</div> | |
const wizardLink = (pathname) => { | |
switch(pathname){ |
made with esnextbin
made with esnextbin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeModel < ActiveRecord::Base | |
default_value_for :is_public, false | |
end |