Skip to content

Instantly share code, notes, and snippets.

View yuki-js's full-sized avatar

Yuki Aoki yuki-js

View GitHub Profile
@yuki-js
yuki-js / dl.md
Last active August 7, 2023 06:01
LT資料
@yuki-js
yuki-js / gist:973f90472a942bb25f105a5de5983488
Created July 16, 2023 23:07
PowerToys KeyboardManager key event tracing
### うまく変換が働かない例
#### Raw
| wParam | lParam->vkCode | lParam->scanCode | lParam->flags | lParam->dwExtraInfo |
| ------ | -------------- | ---------------- | ------------- | ------------------- |
| 256 | 91 | 91 | 1 | 0 |
| 256 | 67 | 46 | 0 | 0 |
| 257 | 67 | 46 | 128 | 0 |
| 257 | 91 | 91 | 129 | 0 |
@yuki-js
yuki-js / bench.md
Last active August 20, 2021 03:28
My Storage Benchmark

Tested with OptiPlex 9020

$ uname -a
Linux iwashi 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Intel(R) Core(TM) i5-4570
  • Ubuntu Server 20.04.2
  • DDR3 4GB x 4
import re
import base64
import io
from PIL import Image
f = open("./roadmap-img.svg")
alltext = f.read()
f.close()
while True:
pat = re.search(r'xlink:href="data:image/png;base64,(.*)"', alltext)
@yuki-js
yuki-js / concept.md
Last active May 4, 2020 16:41
new wallet concept
  • Made with React
  • Async interface
  • Modular component
  • Hardware wallet ready
  • Cold mode
  • Bitcoin-derivative, Polkadot, Ethereum is main target
  • Wasm, Multi thread
  • Web3, mpurse compatible
#!/bin/bash
echo "--- compiling ---"
g++ -std=gnu++1y -O0 -I/usr/local/include -L/usr/local/lib -o ./a.out ./main.cpp
echo "--- running ---"
./a.out
@yuki-js
yuki-js / eval.sh
Created July 1, 2019 12:11
競プロ用
#!/bin/bash
echo "--- compiling ---"
g++ -std=gnu++1y -O0 -I/usr/local/include -L/usr/local/lib -o ./a.out ./main.cpp
echo "--- please type ---"
read line
in=$line
while true
do
read line
if ["$line" = ""]; then