swift --version
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.5.0
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 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
package main | |
import ( | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/jmoiron/sqlx" | |
) | |
type Hoge struct { |
コンパイル後に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: |