Skip to content

Instantly share code, notes, and snippets.

View ryym's full-sized avatar
♨️
Now loading...

Ryutaro Yamada ryym

♨️
Now loading...
  • Tokyo / Japan
View GitHub Profile
@go-zen-chu
go-zen-chu / swap_colon_semicolon.ahk
Last active February 1, 2025 12:03
Swap colon and semicolon key with AutoHotkey v2
#Requires AutoHotkey v2.0
; swap semicolon & colon for vim
*vkBA::{
If (GetKeyState("Shift")){
Send "`;"
}
else {
Send ":"
}
}
@ckafi
ckafi / track_prev_focus
Last active June 17, 2025 20:22
Tracks the previosly focused window in sway and marks it with '_prev'
#!/bin/sh
prev_focus=$(swaymsg -r -t get_seats | jq '.[0].focus')
swaymsg -m -t subscribe '["window"]' | \
jq --unbuffered 'select(.change == "focus").container.id' | \
while read new_focus; do
swaymsg "[con_id=${prev_focus}] mark --add _prev" &>/dev/null
prev_focus=$new_focus
done
@kemsakurai
kemsakurai / TypeScript で Module not found- Error- Can't resolve 'xxxx' が発生する.md
Created December 25, 2018 16:32
TypeScript で Module not found- Error- Can't resolve 'xxxx' が発生する

Google Apps Script を TypeScript で 作成しようとしていて、google/clasp: 🔗 Develop Apps Script projects locally. を触っている。

モジュール作成が一段落して、いざ npm run-script build を実行したところ以下のエラーが発生した。

ERROR in ./node_modules/querystring-es3/index.js
Module not found: Error: Can't resolve './decode' in '/Users/user_name/GitHub/gas-PageSpeedInsights-v5/node_modules/querystring-es3'
 @ ./node_modules/querystring-es3/index.js 3:33-52
 @ ./src/PageSpeedInsightV5.ts
 @ ./src/runPageSpeedTest.ts
@yymm
yymm / want_to_ergodox.md
Last active May 27, 2020 00:44
Ergodox買おうの会

この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)

購入できるところ

➜ FalbaTech

ErgoDox - FalbaTech

選んでいくスタイル。

@retorillo
retorillo / css-position-and-z-index.md
Created November 25, 2015 07:38
CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

positionの種類

CSSのpositionは、static, absolute, relative, fixedがあり、デフォルトではstaticです。

要素のZ軸上での重なりは必ずしも、z-indexの値や、HTMLで記述した順番通りではなく、 このpositionとも密接な関係があります。

positionとZ軸上の位置関係

@mitsuruog
mitsuruog / index.md
Last active January 24, 2025 02:47
express実践入門

express実践入門


自己紹介

小川充

  • mitsuruog
@lalyos
lalyos / vim-grep-pt.md
Created February 27, 2015 09:36
vim grep multiple files with pt (The Platinum Search)

vim commands to use pt as grep command

set grepprg=pt\ --nogroup\ --nocolor

crete Pt vim command and map it to \

command -nargs=+ -complete=file -bar Pt silent! grep! <args>|cwindow|redraw!
nnoremap \ :Pt
@gakuzzzz
gakuzzzz / 1_.md
Last active March 7, 2025 06:35
Scala の省略ルール早覚え

Scala の省略ルール早覚え

このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();