Skip to content

Instantly share code, notes, and snippets.

@AndyDangerous
AndyDangerous / gist:9f5fecd8d3e4105f3850
Last active August 29, 2015 14:10
When you want lynx on your mac (Yosemite)...
# you may need to create this
cd /usr/local/src
# 2.8.8 is the latest stable version as of Nov. 21, 2014 - check lynx.isc.org for more recent versions
curl -O http://lynx.isc.org/lynx2.8.8/lynx2.8.8.tar.gz
tar -xzvf lynx2.8.8.tar.gz
cd lynx2-8-8
./configure --mandir=/usr/share/man
make
# you may need to `sudo` this
make install
# Environment Variables
# Not this time...
# Take you to the dir of a file in a gem. e.g. `2gem rspec`
2gem () {
cd "$(dirname $(gem which $1))"
}
# Gives you a middle finger prompt because I was only born with two
# GODDAMMIT! It doesn't exist yet

TODO

Features

  • reverse-geocoding
  • various optoins
  • state code sorter outer

Pre-Pull Request

  • Appropriate fixtures
  • Errors
Elk Breakfast Sausage:
20 lbs elk
5 lbs pork fat/trimmings
3 T black pepper
3 T red pepper
3/4 c. brown sugar
6 T coarse salt
1 T fennel seeds
@AndyDangerous
AndyDangerous / .vimrc
Created December 22, 2015 20:20
Old .vimrc from turing. Last updated Nov. 2014
execute pathogen#infect()
set rtp+=/usr/local/go/misc/vim
colorscheme spacegray
"" ========== These come from Mislav (http://mislav.uniqpath.com/2011/12/vim-revisited/) ==========
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands

Slow Cooker Pulled Elk

Ingredients

  • 4 -6 lbs elk
  • 2 onions, quartered
  • 2 tablespoons light brown sugar
  • 1 tablespoon paprika (be liberal)
  • 2 teaspoons salt
@AndyDangerous
AndyDangerous / to_ski_in_GTNP.md
Last active January 6, 2016 22:49
Teton Hit List

Things I want to ski in the Tetons

There are a lot of things, and these are some of them. Also, page numbers are for pages in Thomas Turiano's excellent book Teton Skiing

  • - Buck Mountain - East Face (p. 112) I've been turned away 2-3 times here and really want to ski it
  • - Grand Teton - Ford-Stettner Couloir (p. 97)
  • - Grand Teton - Otter Body
  • - Middle Teton - Glacier Route (p. 101)

San Juans

  • - Sneffels - Snake Couloir
  • - Wilson Peak - Coors

Elks

  • - N. Maroon Peak - N. Face
  • - Pyramid - Landry Line

RMNP

  • - Longs Peak - N. Face

fb tutorial, thinking in react, egghead isn't bad, survivejs for webpack stuff, full stack redux (even if you aren't using redux it's worth it)

Do first two first though

And it's hard because of work, but try stuff without flux first

It's worth it to understand plain react and why people invented flux in the first place

And you can always pair with yours truly

@AndyDangerous
AndyDangerous / Plug.Conn.ex
Created October 29, 2016 00:32
Plug.Conn from my phone sent to my little phoenix thing though twilio
%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{},
before_send: [#Function<1.27086174/1 in Plug.Logger.call/2>,
#Function<0.78287744/1 in Phoenix.LiveReloader.before_send_inject_reloader/1>],
body_params: %{"AccountSid" => "My-Account-Sid",
"ApiVersion" => "2010-04-01", "Body" => "Hello", "From" => "+12076666",
"FromCity" => "PORTLAND", "FromCountry" => "US", "FromState" => "ME",
"FromZip" => "04101", "MessageSid" => "SMb9ef4379773d0515b906ea007d5a3934",
"NumMedia" => "0", "NumSegments" => "1",
"SmsMessageSid" => "some-SmsMessageSid",
"SmsSid" => "some-SmsSid", "SmsStatus" => "received",