Instantly share code, notes, and snippets.
🚼
babu-mi
There is no better place like ofuton
- Tokyo, Japan
- 10:33
(UTC +09:00) - http://teitoku-window.hatenablog.com/
- @y_chu5
yamachu /github-copilot-feature-summary-ja.md
CreatedMarch 17, 2025 11:34
GitHub Copilotの最新の変更などを、VSCodeのdocsから追えないか試す 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
# >() がbashじゃないと使えないので | |
SHELL=/bin/bash | |
# Issue番号は用途によって分けているけど、とりあえずDB周りは1 | |
ISSUE=1 | |
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md#official-sources | |
gh: | |
type -p curl>/dev/null|| (sudo apt update&& sudo apt install curl -y) | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg| sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg\ | |
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ |
yamachu /wasm_build_for_sharp.sh
Last activeNovember 28, 2021 16:41
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
emcmake cmake \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ | |
-DBUILD_SHARED_LIBS=OFF \ | |
-DENABLE_CXX11=ON -DBUILD_TESTS=OFF \ | |
-DBUILD_PERF_TESTS=OFF \ | |
-DBUILD_DOCS=OFF \ | |
-DBUILD_EXAMPLES=OFF \ | |
-DBUILD_JAVA=OFF \ | |
-DBUILD_opencv_java_bindings_generator=OFF \ |
yamachu /sub-overlay.md
Last activeNovember 24, 2021 13:15
yamachu /Virtual FileSystem on BlazorWebassembly.txt
CreatedOctober 29, 2021 11:12
BlazorWebassembly(.NET6 rc2)のFileSystemを眺めたやつ 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
/ | |
/tmp | |
/home | |
/home/web_user | |
/dev | |
/dev/null | |
/dev/tty | |
/dev/tty1 | |
/dev/random | |
/dev/urandom |
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{Library}from"ffi-napi"; | |
importArrayTypefrom"ref-array-napi"; | |
import{types,alloc}from"ref-napi"; | |
// typedef | |
constlongArray=ArrayType(types.long); | |
constfloatArray=ArrayType(types.float); | |
varkernel32=Library("kernel32",{ | |
'SetDllDirectoryA':["bool",["string"]] |
yamachu /libopenjtalk.ts
CreatedSeptember 12, 2021 08:08
https://github.com/yamachu/LibOpenJTalk をNode.jsから呼び出すやつの下書き 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{Library}from'ffi-napi'; | |
importArrayTypefrom'ref-array-napi'; | |
import{ | |
alloc, | |
allocCString, | |
readCString, | |
refType, | |
sizeof, | |
types, | |
}from'ref-napi'; |
yamachu /check_api_with_gh_command.sh
Last activeMay 3, 2021 19:29
VSCodeのcommitのhistoryからリリースされたっぽそうなやつを引っ張るやつ 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
seq 1 10| xargs -I{} gh api -X GET repos/microsoft/vscode/commits -f q='sha:master' -f per_page=100 -f page={} --jq'.[].sha'|xargs -I{} gh api -X GET repos/microsoft/vscode/commits/{}/check-runs -f app_id=9426 --jq'.check_runs[] | { sha: .head_sha, name: .name}' | |
<<EOF | |
{"name":"VS Code (Release Release Build)","sha":"a348d103d1256a06a2c9b3f9b406298a9fef6898"} | |
{"name":"VS Code (Release Release Build)","sha":"0123d26aaa393bccf99f31f1eac07df6c9e218ce"} | |
{"name":"VS Code (Release Release Build)","sha":"19cda32aafccb88db45622e7ae9be90cb71c9744"} | |
{"name":"VS Code (Release Release Build)","sha":"724172d1349f1bdf0289baa59204cb54128d78ae"} | |
{"name":"VS Code (Release Release Build)","sha":"5080d21c0b538b996c83fb7b14a746f656eaef15"} | |
{"name":"VS Code (Release Release Build)","sha":"633562da380f9161ea2fd783e561eed508cfbbea"} | |
{"name":"VS Code (Release Release Build)","sha":"0310f02dc5d834bb3a7cc421ea5374aec8d011f1"} |
yamachu /slack-emoji-getter.ps
CreatedApril 20, 2021 02:56
Slackのcustom emojiを全部ぶっこ抜いてくるやつ(Windows環境でもすぐ出来るようにPowerShellで書いたやつ、もちろんmacでも動く) 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
//ref:https://hush-in.hatenablog.com/entry/2019/03/24/112859 | |
//ここにあるようにhttps://(workspace).slack.com/customize/emojiからレスポンスぶっこ抜いてきてemojis.jsonみたいな名前でjsonを保存する | |
//以下のスクリプトはすべて同一ディレクトリで行われるのであらかじめ汚れていいディレクトリで作業すること……… | |
$jsonContent=(Get-Content -Path "emojis.json" -Encoding UTF8 -Raw | ConvertFrom-Json -AsHashtable).emoji | |
foreach($key in $jsonContent.keys) { | |
//aliasとかがあるので、httpsに限定しておく | |
if(!$jsonContent[$key].StartsWith("https")) {continue } | |
Invoke-WebRequest$jsonContent[$key]-OutFile$key | |
} |
NewerOlder