Skip to content

Instantly share code, notes, and snippets.

@znatz
znatz / wip.md
Created May 8, 2022 09:25 — forked from mizchi/wip.md

放送で紹介する用。書きかけです。


Rust for TypeScript Developper

これは、 TypeScript 開発者が Rust + wasm-pack でフロントエンドを書けるようになるためのチュートリアルです。

Rust で書きつつ、 TypeScript で相当するコードをコメントで残しておきます。

@znatz
znatz / fullcalendar.markdown
Created November 29, 2020 14:44
FullCalendar
@znatz
znatz / gist:d418eb0940684f263e3ef09c63d88883
Created March 10, 2018 08:07 — forked from cmackay/gist:5863257
AppleScript to save and restore window position and sizes.
-- allSettings is a list of records containing {width:? height:? apps:{{name:? pos:? size:?},...}
-- for each display setup store the apps and their associated position and size
property allSettings : {}
-- create a variable for the current settings
set currentSettings to {}
display dialog "Restore or save window settings?" buttons {"Restore", "Save"} default button "Restore"
set dialogResult to result
$! raise された例外オブジェクト
$" require で読み込まれたファイルの配列
$#
$$ 現在のプロセス ID
$%
$& 正規表現にマッチした箇所の文字列
$' 正規表現にマッチした箇所より後ろの文字列
$(
$)
$* Ruby スクリプトに指定された引数。ARGV と同じ
@znatz
znatz / file0.txt
Created March 29, 2014 17:56
CmusをRuby ワンライナーでコントロールする ref: http://qiita.com/900090009/items/c0477585395caedda70b
$ ruby -r socket -e 'Socket.unix("#{ENV["HOME"]}/.cmus/socket"){|s| IO.copy_stream($<, s)}'
player-pause <--コントロールコマンド
player-play
seek +1m
 ...
@znatz
znatz / cli
Created March 23, 2014 10:39
rvm complain of "PATH is not properly set up" ref: http://qiita.com/900090009/items/779dd0b5317e24939489
__rvm_path_match_gem_home_check_warning()
{
rvm_warn "\
Warning! PATH is not properly set up, '$GEM_HOME/bin' $1, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',to fix temporarily in this shell session run: 'rvm use ${GEM_HOME##*/}'."
}
__rvm_path_match_gem_home_check()
{
(( ${rvm_silence_path_mismatch_check_flag:-0} == 0 )) || return 0
[[ -n "${GEM_HOME:-}" ]] || return 0

GitHub トレーニングチームから学ぶ Git の内部構造

Graphs, Hashes, and Compression, Oh My!

Hash について

従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。