- t wada さん https://twitter.com/t_wada
- naoya さん https://twitter.com/naoya_ito
- ぷーじさん https://twitter.com/YuG1224
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
| import { | |
| iterateReader, | |
| readableStreamFromIterable, | |
| } from "https://deno.land/std@0.158.0/streams/mod.ts"; | |
| import { createHash } from "https://deno.land/std@0.158.0/hash/mod.ts"; | |
| const path = "data.txt"; | |
| function toHex(digest: ArrayBuffer) { | |
| return [...new Uint8Array(digest)].map(x => x.toString(16).padStart(2, '0')).join('') |
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
| import { serve } from "https://raw.githubusercontent.com/denoland/deno_std/main/http/server.ts"; | |
| import "https://raw.githubusercontent.com/denoland/deno_std/main/node/module_all.ts"; | |
| serve(() => new Reseponse("ok")); |
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
| /** @jsx h */ | |
| import { bind, h } from "https://deno.land/x/kt3klib@v0.0.3/paul.ts"; | |
| bind("my-component", ({ on, morph }) => { | |
| let count = 0; | |
| on("click", "button", () => { | |
| count++; | |
| render(); | |
| }); |
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
| /** @jsx h */ | |
| import { bind, cl, h } from "https://deno.land/x/kt3klib@v0.0.3/paul.ts"; | |
| import { Todo, TodoCollection } from "./todo-models"; | |
| type Filter = "all" | "completed" | "uncompleted"; | |
| type Query = <T = HTMLElement>(q: string) => T | null; | |
| const hashToFilter = { | |
| "#/all": "all", | |
| "#/active": "uncompleted", | |
| "#/completed": "completed", |
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
| import { ApiFactory } from "https://deno.land/x/aws_api@v0.6.0/client/mod.ts"; | |
| import { RDSDataService } from "https://aws-api.deno.dev/v0.3/services/rdsdataservice.ts"; | |
| const rds = new ApiFactory({ region: "us-west-2" }).makeNew(RDSDataService); | |
| const resp = await rds.executeStatement({ | |
| resourceArn: "arn:aws:rds:<region>:<account number>:<resourcetype>:<name>", | |
| secretArn: "arn:aws:secretsmanager:<region>:<account number>:secret:<name>", | |
| sql: "SELECT * FROM users LIMIT 10", | |
| }); | |
| console.log(resp.records); |
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
| async function checkModuleSupport(name) { | |
| try { | |
| await import(name); | |
| console.log(`✅ ${name} is supported`); | |
| } catch { | |
| console.log(`❌ ${name} is not supported`); | |
| } | |
| } | |
| for (const mod of [ |
https://twitter.com/lulu_engineer
- Web制作出身
- インフラエンジニア
- スタートアップ(toC)CTO 兼 業界最大手の超有名企業のテックリード 兼 中小企業(HR系)の外部技術顧問 兼 副業ITコンサル
- 現金以外の金融資産を毎月報告
- 31歳
- github なし
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
| { | |
| "**/*.js": "Copyright js haha", | |
| "**/*.ts": "Copyright ts" | |
| } |
json report script for wrk
curl -oreport.lua https://gist.githubusercontent.com/kt3k/3d46c9510d8e3aaace02c27343679626/raw/39c6e1b581adb6b49d066a05acbffa45f8cd1fb8/report.lua
curl -ojson.lua https://gist.githubusercontent.com/kt3k/3d46c9510d8e3aaace02c27343679626/raw/39c6e1b581adb6b49d066a05acbffa45f8cd1fb8/json.lua
wrk -t48 -c480 -d20s http://localhost:3000/ -s report.lua -- output.json