Skip to content

Instantly share code, notes, and snippets.

View aheuermann's full-sized avatar

Andrew Heuermann aheuermann

View GitHub Profile
Install XCode & Command Line Tools (Use the App Store)
Install Git - http://git-scm.com/download/mac
Follow these instructions: https://help.github.com/articles/generating-ssh-keys
# Installing Homebrew
open Terminal
cd ~
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew update
brew edit play
// promise handles user not found by returing `null`
// advantage - don't have to write a reject handler
// disadvantage - possibly forget to write `null` check and cause null pointer exception
function checkEmail(emailAddress) {
return facade.user.getUserByEmailAddress(emailAddress).chain(function (user) {
if (!user) {
return {available: true};
}
return facade.user.isUserAnInvitedTaker(user).chain(function (isInvited) {
@aheuermann
aheuermann / create_connection.py
Created September 1, 2017 00:45 — forked from nathairtras/create_connection.py
creating airflow connections via python
from airflow import settings
from airflow.hooks import BaseHook
from airflow.models import Connection
# Start a session
session = settings.Session()
# Create a new connection - these are not unique by name!
cnx_kwargs = {
"conn_id": "mssql_named",