{
"env": {
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended"
}
This file contains 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
<label *ngFor="let control of form.controls.liquors.controls; let i = index"> | |
<input type="checkbox" [formControl]="control"></input> | |
<span>{{ liquors[i].label }}</span> | |
</label> |
This file contains 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
FROM node:10-alpine AS builder | |
WORKDIR /work | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY src ./src | |
COPY public ./public | |
RUN yarn build | |
FROM nginx:alpine |
This file contains 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
apm list --installed --bare > ~/.atom/atom-packages.txt |
This file contains 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
// @flow | |
export default class FirebaseUtils { | |
static logEvent(name: string, parameters: Object = {}): void { | |
if (!name) { | |
return | |
} | |
if (FirebaseUtils.isAndroid) { | |
window.AnalyticsWebInterface.logEvent(name, JSON.stringify(parameters)) | |
return |
This file contains 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
// @flow | |
import { AutoSizer, WindowScroller } from 'react-virtualized' | |
import React, { Component } from 'react' | |
import ReactDOM from 'react-dom' | |
type Props = { | |
children?: (args: { | |
height: number, | |
isScrolling: boolean, | |
onChildScroll: Function, |
This file contains 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
# Emoji list | |
# 🎨 :art: UI | |
# 🐛 :bug: バグ | |
# 💄 :lipstick: リファクタリング | |
# 📝 :memo: ドキュメント | |
# 👔 :necktie: テストコード | |
# 📦 :package: ライブラリ | |
# ✨ :sparkles: 機能追加 |
This file contains 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
var webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
// 起点となるファイルを指定 | |
'bundle-hello' : './app-hello.js', | |
'bundle-backbone': './app-backbone.js' | |
}, | |
output: { | |
// 出力先のパスを指定 |
This file contains 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
var _ = require('underscore'); | |
var Backbone = require('backbone'); | |
// 動作確認用にBackboneのModelを作ってみる | |
var MyModel = Backbone.Model.extend({ | |
hello: function() { | |
console.log('hello!!'); | |
} | |
}); |
This file contains 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
#Add getter-setter | |
_prop = (initValue) -> | |
do (val = initValue) -> | |
_val = val | |
(val) -> | |
return _val if val is undefined | |
_val = val | |
#Example | |
myValue = _prop 'hello' |
NewerOlder