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
App.accountId = 'asdf'; | |
App.RESTAdapter = DS.RESTAdapter.extend({ | |
// Scope all ajax calls. | |
ajax: function(url, type, hash) { | |
if (Ember.isEmpty(hash)) hash = {}; | |
if (Ember.isEmpty(hash.data)) hash.data = {}; | |
hash.data.account_id = App.accountId; | |
this._super(url, type, hash); | |
} |
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
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
function parse_git_dirty { | |
git diff --quiet || echo " ▲ " | |
} | |
function parse_git_branch { | |
e=`echo $( { git status; } 2>&1 ) | tr '[:upper:]' '[:lower:]'` | |
if [[ ! $e =~ 'not a git repository' ]] | |
then git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)] /" | |
fi |
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
require "rubygems" | |
# gem install ruby-gmail | |
require 'gmail' | |
# gather email list | |
addresses = %w{ | |
email1@domain.com | |
email2@domain.com |
NewerOlder