Skip to content

Instantly share code, notes, and snippets.

View tealtail's full-sized avatar

Alicia Lauerman tealtail

View GitHub Profile
@tealtail
tealtail / pyenv-install-osx.sh
Created October 18, 2018 16:14 — forked from mtchavez/pyenv-install-osx.sh
Using pyenv to install python on OS X with homebrew dependencies
# 2.7
CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include -I/usr/local/opt/zlib/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" \
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" \
pyenv install -v 2.7.12 --force
# 3.x
CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib" \
pyenv install -v 3.3.6

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@tealtail
tealtail / profile_helper.sh
Created February 16, 2016 17:50
base16-shell profile helper
#!/bin/bash
script_dir=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)
for script in $script_dir/base16*.sh; do
script_name=$(basename $script .sh)
theme=${script_name#*-}
variation=${theme#*.}
theme=${theme%.*}
cat <<FUNC
base16_${theme}_${variation}()
{
@tealtail
tealtail / gist:345d3dad4e832499f521
Last active February 16, 2016 02:11 — forked from jitendravyas/gist:8d35b092dd9102a05ea3
Brew Cask installation with Laptop script
#!/bin/sh
# homebrew taps
brew tap caskroom/cask
brew tap caskroom/versions
brew tap caskroom/fonts
# Updated grep
brew tap homebrew/dupes
@tealtail
tealtail / gist:3c7d3bb0060f697f6081
Last active August 29, 2015 14:02
white-space sublime settings
Install TrailingSpaces package
Open TrailingSpace’s preferences (Preferences -> Package Settings -> TrailingSpaces -> Settings - User), and add:
{
"trailing_spaces_include_current_line": false
}
------
Sublime User Preferences
development:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_development
pool: 5
host: localhost
username: <%= ENV['PG_USERNAME'] %>
test:
adapter: postgresql
@tealtail
tealtail / spec_helper.rb
Created November 18, 2013 20:22
spec_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'database_cleaner'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
@tealtail
tealtail / hangman.md
Last active December 27, 2015 04:49 — forked from phlco/hangman.md

Hangman LAB

###Goal:

  • The goal of this lab is to practice organizing your JavaScript code in an object-oriented way. It will also allow you to continue to practice working with events and manipulating the DOM.

The Hangman Game:

  • The game selects a random word from a list of words, and makes it the "secret word"
  • The number of letters in the secret word is obvious to the player, shown with a "_" displayed for each letter.
  • The player guesses one letter at a time, trying to figure out what the word is
  • If the player guesses correctly, any instances of that letter are revealed in the secret word.
Pushing to Heroku
-----------------
Install Heroku
Create an account on Heroku
Install the Heroku Toolbelt
$ heroku login
Enter your Heroku credentials.
@tealtail
tealtail / Rakefile
Last active December 25, 2015 05:09 — forked from phlco/Rakefile
require 'git'
require 'date'
require 'logger'
START_DATE = Date.parse('23/09/2013')
namespace :hw do
desc "gets homework"
task :get do