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> | |
<script src="https://graphed.japacom.co.jp/graphed.js?pks=graph01:ZNAK8J3O0TLPSQFMVW11461826261465,graph02:PFK2TBCD9RV3IS5JQGA1453176946412"></script> | |
</head> | |
<body> | |
<div id="graph01" style="width: 500px;height: 500px;"></div> | |
<div id="graph02" style="width: 700px;height: 500px;"></div> | |
</body> | |
</html> |
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
// for detail http://stackoverflow.com/questions/8942678/keyboardevent-in-chrome-keycode-is-0/12522752#12522752 | |
var ev = document.createEvent('Events'); | |
ev.initEvent('keypress', true, true); | |
ev.keyCode = 13; | |
ev.which = 13; | |
ev.charCode = 13; | |
ev.key = 'Enter'; | |
ev.code = 'Enter'; | |
document.querySelector('.new-todo').dispatchEvent(ev); |
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
// gulpfile.js | |
var gulp = require( 'gulp' ); | |
var rsync = require( 'gulp-rsync' ); | |
var rsyncHost = process.env.RSYNC_HOST || '0.0.0.0'; | |
var rsyncPort = process.env.RSYNC_PORT || 22; | |
gulp.task( 'watch', function() { | |
var targets = [ | |
'./js/**' |
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
.... | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.tasks.runTask", | |
"args": "Fix lint current file" | |
}, | |
... |
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
{ | |
"eslint.alwaysShowStatus": true, | |
"eslint.enable": true, | |
"eslint.options": { | |
"configFile": ".eslintrc", | |
}, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": 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
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"globals": { | |
"APP": true, | |
"jQuery": true, | |
"$": 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
const fs = require('fs') | |
const uuidv4 = require('uuid/v4') | |
const AWS = require('aws-sdk'); | |
AWS.config.update({ | |
accessKeyId: 'aaaabbbb', | |
secretAccessKey: 'aaabbbccc', | |
}); | |
const spacesEndpoint = new AWS.Endpoint('nyc1.digitaloceanspaces.com'); |
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
ServerAliveInterval 30 | |
ServerAliveCountMax 120 | |
Host github github.com | |
HostName github.com | |
IdentityFile path/to/rsa/file | |
User git | |
Port 22 |