Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View schainks's full-sized avatar

David Schainker schainks

View GitHub Profile
[caps]>[escape]
[lctrl]>[lwin]
[rwin]>[rctrl]
[rctrl]>[rwin]
[kp-e]>[up]
[kp-s]>[left]
[kp-d]>[down]
[kp-f]>[right]
[kp-lctrl]>[lwin]
[kp-rwin]>[rctrl]
@schainks
schainks / keybase.md
Created September 4, 2019 17:42
Keybase proof

Keybase proof

I hereby claim:

  • I am schainks on github.
  • I am schainks (https://keybase.io/schainks) on keybase.
  • I have a public key ASCoPjhAKuRMMlVOxuHMjpAd6qD1lIw1Bt0eCxfYXsVCGQo

To claim this, I am signing this object:

@schainks
schainks / Elixir - abbrev function
Last active March 23, 2016 08:21
abbreviate strings in elixir
defmodule Acronym do
def abbrev(string) do
string
|> String.split(" ")
|> Enum.map(fn(x) -> hd(String.codepoints(x)) end)
|> Enum.map(fn(x) -> String.upcase(x) end)
end
def abbrev2(string) do
string
@schainks
schainks / elixir_repo_migrations.md
Last active August 29, 2015 14:27
Running migration in Elixir console from a compiled OTP app

Ecto.Migrator.run(Echo.Repo, "lib/-/priv/repo/migrations/", :up, [all: true])