This file contains 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
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 |
This file contains 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
// 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) { |
This file contains 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
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", |