{
"env": {
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended"
}
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
| #!/bin/bash | |
| set -euo pipefail | |
| input=$(cat) | |
| [[ $(echo "$input" | jq -r '.stop_hook_active') == "true" ]] && exit 0 | |
| text=$(python3 -c " | |
| import json | |
| with open('$(echo "$input" | jq -r '.transcript_path')') as f: | |
| for entry in reversed([json.loads(l) for l in f if l.strip()]): |
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
| <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 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
| 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 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
| apm list --installed --bare > ~/.atom/atom-packages.txt |
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
| // @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 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
| // @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 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
| # Emoji list | |
| # 🎨 :art: UI | |
| # 🐛 :bug: バグ | |
| # 💄 :lipstick: リファクタリング | |
| # 📝 :memo: ドキュメント | |
| # 👔 :necktie: テストコード | |
| # 📦 :package: ライブラリ | |
| # ✨ :sparkles: 機能追加 |
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
| var webpack = require('webpack'); | |
| module.exports = { | |
| entry: { | |
| // 起点となるファイルを指定 | |
| 'bundle-hello' : './app-hello.js', | |
| 'bundle-backbone': './app-backbone.js' | |
| }, | |
| output: { | |
| // 出力先のパスを指定 |
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
| var _ = require('underscore'); | |
| var Backbone = require('backbone'); | |
| // 動作確認用にBackboneのModelを作ってみる | |
| var MyModel = Backbone.Model.extend({ | |
| hello: function() { | |
| console.log('hello!!'); | |
| } | |
| }); |
NewerOlder