View bash_profile
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
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
CYN='\e[1;96m' | |
# git dirty branch | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "(._.)" | |
} | |
function parse_git_clean { |
View script.js
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
var EMAIL_DRAFTED = "EMAIL DRAFTED"; | |
function draftMyEmails() { | |
var sheet = SpreadsheetApp.getActiveSheet(); // Use data from the active sheet | |
var startRow = 2; // First row of data to process | |
var numRows = sheet.getLastRow() - 1; // Number of rows to process | |
var lastColumn = sheet.getLastColumn(); // Last column | |
var dataRange = sheet.getRange(startRow, 1, numRows, lastColumn) // Fetch the data range of the active sheet | |
var data = dataRange.getValues(); // Fetch values for each row in the range | |