Skip to content

Instantly share code, notes, and snippets.

View ammbot's full-sized avatar

Thanya Nitithatsanakul ammbot

  • Bangkok, Thailand
View GitHub Profile
@ammbot
ammbot / test.exs
Created February 13, 2017 16:52
Elixir test IO from spawned process
test "capture IO" do
leader = self()
pid = spawn fn ->
Process.group_leader(self(), leader)
IO.puts "hello"
end
assert_receive {:io_request, ^pid, _ref, {:put_chars, :unicode, "hello\n"}}
end
@ammbot
ammbot / .slate
Created October 26, 2014 09:38
slate config
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
@ammbot
ammbot / .tumx.conf
Created October 26, 2014 09:35
tmux config file
set -g prefix C-a
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
setw -g mode-keys vi