# 環境初期構築
npm i -g yo bower grunt-cli
# generatorのインストール
npm i -g generator-webapp
# yo コマンドでアプリ開発開始
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 ary_u8 = new Uint8Array([0x30,0x82,0x06,....]); // byte code | |
var file = new File([ary_u8], 'file name', { | |
lastModified: new Date(0), | |
type: "application/json" | |
}); | |
var dispatchDrop = function(ary_u8){ | |
var createEvent= function(type) { | |
var event = document.createEvent("CustomEvent"); | |
event.initCustomEvent(type, true, true, null); |
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
injector: { | |
options: { | |
// Task-specific options go here. | |
}, | |
scripts: { | |
options: { | |
transform: function(filePath) { | |
filePath = filePath.replace('/app/', ''); | |
filePath = filePath.replace('/.tmp/', ''); | |
return '<script src="' + filePath + '"></script>'; |
Google App Scriptメモ
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
name | value | |
---|---|---|
A | 100 | |
B | 200 | |
C | 250 | |
D | 300 |
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 wsx = new WebSocket('ws://' + location.host); | |
wsx.onopen = function(e){console.log('onopen',e);}; | |
wsx.onmessage = function(e){console.log('onmessage',e)}; | |
wsx.onclose = function(e){console.log('onclose',e)}; | |
wsx.onerror = function(e){console.log('onerror',e)}; |