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 a = () => {} // arrow function | |
| let b = function(){} // 普通のfunction(無名) | |
| let c = function d(){} // 名前付きfunction |
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
| const {BrowserWindow} = electron; | |
| const os = require('os') | |
| const path = require('path') | |
| const fs = require('fs') | |
| function createWindow() { | |
| : | |
| : | |
| // react dev toolのID |
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
| unset DOCKER_TLS_VERIFY | |
| unset DOCKER_CERT_PATH | |
| unset DOCKER_MACHINE_NAME | |
| unset DOCKER_HOST |
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
| export const NotSupportedMessage = () => <h3>お使いのブラウザはサポートされておりません</h3> | |
| export default class MainApp extends Component{ | |
| isSupportedPlatform(){ | |
| if(/*ブラウザが未サポートかの判定*/){ | |
| return false | |
| } | |
| return true | |
| } | |
| render() { |
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
| ReactDom.render( | |
| <Main />, | |
| document.body | |
| ) |
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 |
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
| 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){ |
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 | |
| // }); | |
| // } |