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": "0.0.1", | |
"private": true, | |
"engines": { | |
"node": "8.5.0", | |
"yarn": "^1.0.2" | |
}, | |
"dependencies": { | |
"compression": "^1.7.0", |
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 nodeResolve from 'rollup-plugin-node-resolve'; | |
import typescript from 'rollup-plugin-typescript'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import json from 'rollup-plugin-json'; | |
import builtins from 'rollup-plugin-node-builtins'; | |
export default { | |
entry: 'src/index.ts', | |
format: 'umd', | |
moduleName: 'Talkie', |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"math" | |
"os" | |
"strings" | |
) |
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
use std::env; | |
use std::process; | |
const HALF_WIDTH: f32 = 0.5_f32; | |
const FULL_WIDTH: f32 = 1_f32; | |
fn str_repeat(string: &str, count: i16) -> String { | |
(0..count).map(|_| string).collect::<String>() | |
} |
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 KEYCODE_LEFT = 37; | |
const KEYCODE_RIGHT = 39; | |
class TabList extends React.Component { | |
static propTypes = { | |
children : React.PropTypes.node, | |
selectedIndex : React.PropTypes.number, | |
onChangeSelected: React.PropTypes.func | |
}; |
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
// これより | |
<SomeComponent | |
propA={} | |
propB={} | |
propC={} | |
propD={} | |
propE={} /> | |
// こうが好き | |
<SomeComponent propA={} |
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
'use strict'; | |
import * as React from 'react'; | |
import * as assign from 'object-assign'; | |
import * as debounce from 'lodash.debounce'; | |
import { appLogger as log } from '../../../utils/Log'; | |
import BaseComponent from '../../base'; | |
const EVENT_SCROLL = 'scroll'; | |
const EVENT_POP_STATE = 'popstate'; |
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
Show hidden characters
{ | |
"modules": "commonStrict", | |
"sourceMaps": "inline", | |
"loose": true, | |
"blacklist": [ | |
] | |
} |
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
{ | |
"parser": "babel-eslint", | |
"plugins": ["react"], | |
"env": { | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, | |
"ecmaFeatures" : { | |
"jsx": true |
NewerOlder