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://hyperwiki.jp/acnh/kabu-tool/ | |
// Array.from(document.querySelectorAll("#output tr")).filter((tr) => tr.className === '').map((tr) => {return { p: parseFloat(tr.childNodes[1].innerText.replace("%", "")), max: parseInt(tr.childNodes[16].innerText), min: parseInt(tr.childNodes[15].innerText)}}).map((x) => (x.max+x.min)/2 * (x.p / 100)).reduce((E, en) => E + en, 0) | |
Array.from(document.querySelectorAll("#output tr")).filter((tr) => tr.className === '').map((tr) => { | |
return { | |
p: parseFloat(tr.childNodes[1].innerText.replace("%", "")), | |
max: parseInt(tr.childNodes[16].innerText), | |
min: parseInt(tr.childNodes[15].innerText) | |
} | |
}).map((x) => (x.max + x.min) / 2 * (x.p / 100)).reduce((E, en) => E + en, 0) |
コンパイル後にthisの位置問題でTypeError: Cannot read property 'bar' of undefinedになるになる
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
名前表示用 |
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
tag=tarata/migrater | |
build: | |
docker build -f ./migrater.Dockerfile -t $(tag) . |
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
tag=tarata/php-with-httpd | |
build: | |
docker build -f ./php-with-httpd -t $(tag) . | |
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
AWS=$(shell which aws) | |
ECS=$(shell which ecs-cli) | |
.DEFAULT_GOAL:=help | |
KEYNAME=ecs_cli_sample | |
CLUSTER=ecs-cli-sample | |
help: | |
cat Makefile | |
keypair/create: |
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
NPM=$(shell which npm) | |
install: $(NPM) | |
$(NPM) install | |
webpack: $(NPM) | |
$(NPM) run webpack -- --config ./webpack.config.js | |
webpack/correct: $(NPM) | |
$(NPM) run webpack -- --config ./webpack.config.corrent.js |
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 php:fpm | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y nodejs |