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
import _ from 'lodash'; | |
_.mixin({ | |
isInt: (value) => { | |
return Number(value) === value && value % 1 === 0; | |
}, | |
isFloat: (value) => { | |
return Number(value) === value && value % 1 !== 0; | |
}, | |
toBoolean: (value) => { |
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
#!/bin/bash | |
DEST_DIR=dest | |
mkdir $DEST_DIR | |
for file in `find . -type f | sed 's!^.*/!!'`; do | |
if [[ ! "$file" =~ sh$ ]]; then | |
echo ${file} | |
`convert $file -thumbnail 20% $DEST_DIR/$file` | |
fi |
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
https://github.com/defunkt/gist | |
# インストール | |
gem install gist | |
# OAuth認証 | |
gist --login | |
> githubのユーザー・パスワードを入力 | |
# ファイルアップロード |
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
export default class IndexedDB { | |
constructor(dbName, dbVersion, stores) { | |
this.db; | |
this.dbName = dbName; | |
this.dbVersion = dbVersion; | |
this.stores = stores; | |
} | |
openDB(callback=(()=>{})) { | |
if (!window.indexedDB) { |
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:6.4.0 | |
WORKDIR /usr/local/src | |
ADD . /usr/local/src | |
RUN cd /usr/local/src | |
RUN npm install | |
CMD ["npm", "run", "start"] | |