n月刊ラムダノート Vol.1, No.1(2019)
コンテナ時代のWebサービスの作り方
(写経も完走した)Pragmatic Terraform on AWS
Microservices architecture よろず本 その一&その二
Microservices architecture よろず本 その三
これでカンタン! ITエンジニアが実践するキャッシュレス時代の資産管理
妄想実行報告書
ゼロトラスト超入門
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
.gem_rbs_collection/ |
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
for i in $(seq 3 12); do ruby yugioh_probability.rb 40 5 $i; done | |
# deck: 40, hand: 5, hit: 3 -> 33.76% | |
# deck: 40, hand: 5, hit: 4 -> 42.71% | |
# deck: 40, hand: 5, hit: 5 -> 50.66% | |
# deck: 40, hand: 5, hit: 6 -> 57.71% | |
# deck: 40, hand: 5, hit: 7 -> 63.93% | |
# deck: 40, hand: 5, hit: 8 -> 69.40% | |
# deck: 40, hand: 5, hit: 9 -> 74.18% | |
# deck: 40, hand: 5, hit: 10 -> 78.34% | |
# deck: 40, hand: 5, hit: 11 -> 81.95% |
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
javascript:(async () => { | |
const kindleRow = () => { | |
const rows = document.querySelectorAll('#cf-detail-table tbody tr'); | |
const kindleRows = [...rows].filter(({ innerText }) => innerText.includes('Kindle') && innerText.includes('未分類')); | |
return kindleRows[0]; | |
}; | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
let row = kindleRow(); |
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
version: "3" | |
services: | |
master: | |
image: jenkins/jenkins:lts | |
environment: | |
- LANG=ja_JP.UTF-8 | |
- LC_CTYPE=ja_JP:ja | |
- TZ=Asia/Tokyo | |
volumes: | |
- ./jenkins_home:/var/jenkins_home |
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
variable "domain" {} | |
variable "hasura_admin_secret" {} | |
variable "rds_password" {} | |
variable "hasura_jwt_secret_key" {} | |
module "hasura" { | |
source = "Rayraegah/hasura/aws" | |
version = "3.0.2" | |
domain = var.domain | |
hasura_version_tag = "v1.2.1" |
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
<div id="root" /> |
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
import puppeteer from 'puppeteer'; | |
const url = 'https://booklog.jp/users/{userName}/goal/{id}'; | |
async function main() { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto(url, { waitUntil: 'networkidle0' }); | |
const rows = await page.evaluate(() => { | |
const ret = Array.from(document.querySelectorAll('table.tableType2 tbody tr')) |
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
def sieve(num) | |
ary = Array.new(num, true) | |
ret = [] | |
ary.each_with_index do |b, i0| | |
next if i0 == 0 || !b | |
p = i0+1 | |
ret.push p | |
i0.step(num, p) do |mark| | |
ary[mark] = false | |
end |
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
#include <iostream> | |
using namespace std; | |
int main(int argc, char const* argv[]){ | |
bool ands[4] = {true & true, true & false, false & true, false & false}; | |
bool ors[4] = {true | true, true | false, false | true, false | false}; | |
cout << "ands: "; | |
for (int i = 0; i < 4; i++) cout << std::boolalpha << ands[i] << " "; |
NewerOlder