I hereby claim:
- I am dsnipe on github.
- I am dmtym (https://keybase.io/dmtym) on keybase.
- I have a public key ASBNlrISF2Ms1HwJ2o_iUcgGLRQ4ybSZCjKgoUiJXfR82Qo
To claim this, I am signing this object:
/******************************************************************************* | |
* Requires: | |
* Arduino MIDI library | |
* http://playground.arduino.cc/Main/MIDILibrary | |
* | |
* | |
* Note: | |
* If you want use with Leonardo, you must choose Arduino MIDI library v4.0 or higher. | |
******************************************************************************* | |
* This program is free software; you can redistribute it and/or modify |
# in your app supervisor | |
:phx_dyn_dispatch = :ets.new(:phx_dyn_dispatch, [:named_table, :bag, :public]) | |
defmodule DynamicDispatch do | |
def register(group, plug, opts) do | |
true = :ets.insert(:phx_dyn_dispatch, {group, plug, opts}) | |
end | |
def unregister(group, plug) do |
# On the phoenix node | |
# if production mode | |
MIX_ENV=prod PORT=4001 elixir --name phoenix@127.0.0.1 --cookie 123 --erl "-kernel inet_dist_listen_min 9001 inet_dist_listen_m 9001" -pa _build/prod/consolidated -S mix phoenix.server | |
# if debug mode | |
elixir --name phoenix@127.0.0.1 --cookie 123 --erl "-kernel inet_dist_listen_min 9001 inet_dist_listen_m 9001" -S mix phoenix.server | |
# On the observing node | |
# Terminal 1, start SSH tunnel | |
ssh -N -L 9001:localhost:9001 -L 4369:localhost:4369 pi@192.168.1.31 |
function et -d 'Start an Emacs client in the terminal, | |
starting the server as necessary.' | |
emacsclient -cnw -a "" $argv | |
end | |
function ec -d 'Start an Emacs client in the Cocoa GUI, | |
starting the server as necessary.' | |
emacsclient -cna "" $argv | |
end |
I hereby claim:
To claim this, I am signing this object:
With Rails 3.0 released a few weeks ago I've migrated a few apps and I'm constantly finding useful new improvements. One such improvement is the ability to log anything in the same way that Rails internally logs ActiveRecord and ActionView. By default Rails 3 logs look slightly spiffier than those produced by Rails 2.3: (notice the second line has been cleaned up)
Started GET "/" for 127.0.0.1 at Mon Sep 06 01:07:11 -0400 2010
Processing by HomeController#index as HTML
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 3) LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 3) LIMIT 1
Rendered layouts/_nav.html.erb (363.4ms)
Created from the plain text reference card on orgmode.org Download this file, and open it in Emacs org-mode!
# Act like Vim | |
set-window-option -g mode-keys vi | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Look good | |
set-option -g default-terminal "screen-256color" |