$ npm install -g ios-sim
$ npm install -g ios-deploy
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
| // onChangeをエミュレート | |
| var elem = document.getElementById("total"); | |
| // ブラウザ判定 | |
| if ( /*@cc_on ! @*/ false) { | |
| // IEの場合 | |
| elem.fireEvent("onchange"); | |
| } else { | |
| // Firefoxの場合 | |
| var evt = document.createEvent("MouseEvents"); // マウスイベント作成 | |
| evt.initEvent("change", false, true); // イベントの設定 |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <link rel="import" href="./template.html"> | |
| </head> | |
| <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
| $ git config --local user.name "your_name" | |
| $ git config --local user.email [email protected] | |
| $ git filter-branch -f --env-filter "GIT_AUTHOR_NAME='your_name'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='your_name'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD | |
| $ git push -f origin master |
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 IncomingWebhook = require('@slack/client').IncomingWebhook; | |
| const url = 'Webhook URL' | |
| const defaults = { | |
| username: 'webhookbot', | |
| iconEmoji: ':ghost:', | |
| channel: '#general' | |
| } | |
| const webhook = new IncomingWebhook(url, defaults); | |
| exports.subscribe = function subscribe(event, callback) { |
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 CLOUDSDK_CORE_PROJECT=PROJECTID | |
| export CLOUDSDK_CORE_ACCOUNT=ACCOUNT |
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
| # https://cloud.google.com/datastore/docs/export-import-entities | |
| $ gcloud beta datastore export --project=${SRC_PROJECT} --namespaces="(default)" gs://${SRC_BUCKET} | |
| $ gsutil cp -r -m gs://${SRC_BUCKET} gs://${DEST_BUCKET} | |
| $ gcloud beta datastore import --project=${DEST_PROJECT} gs://${DEST_BUCKET}/overall_export_metadata |
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
| [Unit] | |
| Description=mackerel-agent | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/etc/mackerel-agent | |
| ExecStart=/etc/mackerel-agent/mackerel-agent --conf=/etc/mackerel-agent/mackerel-agent.conf | |
| TimeoutStopSec=5 | |
| StandardOutput=null | |
| User=root |
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
| git diff --name-only <コミットID A> <コミットID B> | xargs misspell |