Add this to your .vimrc:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Upgrading 1 outdated package, with result: | |
wireshark 2.4.4 | |
==> Satisfying dependencies | |
==> Downloading https://www.wireshark.org/download/osx/Wireshark%202.4.4%20Intel%2064.dmg | |
Already downloaded: /Users/dkarter/Library/Caches/Homebrew/Cask/wireshark--2.4.4.dmg | |
==> Verifying checksum for Cask wireshark | |
==> Starting upgrade for Cask wireshark | |
==> Running uninstall process for wireshark; your password may be necessary | |
==> Running uninstall script /usr/sbin/dseditgroup | |
==> Username and password must be provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ==================================== | |
" GitGutter: | |
" ==================================== | |
nnoremap <silent> <cr> :GitGutterNextHunk<cr> | |
nnoremap <silent> <backspace> :GitGutterPrevHunk<cr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ThreeTwentyThree do | |
def find_sum_zero_triplets(list) do | |
for x <- list, y <- list, z <- list, filter(list, x,y,z) do | |
Enum.sort([x,y,z]) | |
end | |
|> Enum.uniq | |
end | |
defp filter(list, x,y,z) do | |
([x,y,z] -- list == []) && (x+y+z == 0) |
I hereby claim:
- I am dkarter on github.
- I am doriankarter (https://keybase.io/doriankarter) on keybase.
- I have a public key ASDQtkGNlS0bRsrTqYHz2kqjQc6apoPAX57DM2eFbJI2igo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"spec/support/pages/*.rb": { | |
"type": "page", | |
"template": [ | |
"module Pages", | |
" class {camelcase}", | |
" include Capybara::DSL", | |
" include CapybaraErrorIntel::DSL", | |
" include Rails.application.routes.url_helpers", | |
"", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd lib/elixir && "/Users/dkarter/Dropbox/Developer/forks/elixir/rebar" clean | |
==> elixir (clean) | |
rm -rf ebin | |
rm -rf lib/*/ebin | |
rm -rf lib/elixir/test/ebin | |
rm -rf lib/*/tmp | |
rm -rf lib/mix/test/fixtures/git_repo | |
rm -rf lib/mix/test/fixtures/deps_on_git_repo | |
rm -rf lib/mix/test/fixtures/git_rebar | |
rm -rf lib/elixir/src/elixir.app.src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Pages | |
class Checkout | |
include Capybara::DSL | |
def visit | |
visit checkout_path | |
end | |
def change_payment_method(payment_method) | |
if payment_method == :credit_card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mkcd () { | |
mkdir -p $1 && cd $1 | |
} | |
function initprj() { | |
if [[ "$1" != "." ]]; then | |
mkcd $1 | |
fi | |
# setup git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"db/migrations/*.rb": { | |
"type": "migration", | |
"template": [ | |
"class {camelcase} < ActiveRecord::Migration", | |
" def up", | |
" execute <<-SQL", | |
" SQL", | |
" end", | |
"", |