Skip to content

Instantly share code, notes, and snippets.

View philosodad's full-sized avatar

J. Paul Daigle philosodad

View GitHub Profile
Julia T. Wood, “Communication in Our Lives”, Wadsworth Publishing Company 1997, pg. 95
** (exit) exited in: GenServer.call(Loggex.Repo.Pool, {:query, :begin, &Loggex.Repo.log/1, [timeout: 15000]}, 5000)
** (EXIT) no process
(elixir) lib/gen_server.ex:564: GenServer.call/3
(ecto) lib/ecto/adapters/sql.ex:407: Ecto.Adapters.SQL.test_transaction/5
(elixir) lib/code.ex:363: Code.require_file/2
(elixir) lib/enum.ex:604: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:604: Enum.each/2
defmodule Settings do
defmacro create_method(name) do
m_name = String.to_atom("get_#{name}")
quote do
def unquote(m_name)() do
end
end
end
end
pry(2)> Phoenix.ConnTest.post conn, "/customers", post: attributes
** (ArgumentError) cannot invoke @/1 outside module
(elixir) lib/kernel.ex:3960: Kernel.assert_module_scope/3
(elixir) expanding macro: Kernel.@/1
test/controllers/customers_controller_test.exs:2: (file)
(phoenix) expanding macro: Phoenix.ConnTest.post/3
test/controllers/customers_controller_test.exs:2: (file)
pry(1)> post conn(), "/customers", [username: "john", password: "doe"]
** (ArgumentError) cannot invoke @/1 outside module
tiffany:serialtest paul$ mix deps.compile
==> serial
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
** (EXIT from #PID<0.142.0>) an exception was raised:
** (ErlangError) erlang error: :enoent
:erlang.open_port({:spawn_executable, '/Users/paul/Dropbox/dev/serialtest/_build/dev/lib/serial/priv/serial'}, [{:args, ['-erlang']}, :binary, {:packet, 2}])
lib/serial.ex:94: Serial.init/1
(stdlib) gen_server.erl:328: :gen_server.init_it/6
(stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
#fun with alias
alias be='bundle exec'
alias bake='bundle exec rake'
alias bails='bundle exec rails'
alias oa='open -a'
export DOCKER_HOST=tcp://192.168.59.103:2375
alias tnbitpay='/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/paul/Bitpay/core-tools/testnet/bitpay'
alias tncustomer='/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/paul/Bitpay/core-tools/testnet/customer'
if [ -x /usr/libexec/path_helper ]; then
PATH=''
source /etc/profile
fi
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
syntax on
filetype plugin indent on
set expandtab
set shiftwidth=2
set tabstop=2
set number
execute pathogen#infect()
colorscheme vividchalk
set backspace=indent,eol,start
@philosodad
philosodad / config
Last active October 8, 2015 18:46
config
#github
Host github.com-philosodad
Hostname github.com
User git
IdentityFile ~/.ssh/github_rsa
Host github.com
Hostname github.com
User git
IdentityFile ~/.ssh/github_rsa