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
# Requires simple-salesforce and pandas | |
# Assumes you have set environment variables for SFDC username, password, and security token | |
import os | |
import pandas as pd | |
from simple_salesforce import Salesforce | |
SFDC_USERNAME = os.environ['SFDC_USERNAME'] | |
SFDC_PW = os.environ['SFDC_PW'] | |
SFDC_TOKEN = os.environ['SFDC_TOKEN'] |
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 datetime import date, timedelta | |
today = date.today() | |
due_date = date.today() | |
# In date.today(), Monday is 0 | |
if today.weekday() == 4: | |
due_date = today + timedelta(days=3) | |
elif today.weekday() == 5: |
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
# Inspired by / mashup of: | |
# https://www.themoderncoder.com/add-git-branch-information-to-your-zsh-prompt/ | |
# and | |
# https://gist.github.com/reinvanoyen/05bcfe95ca9cb5041a4eafd29309ff29 | |
# add code below to end of ~/.zshrc (in MacOs) | |
# Load version control information | |
autoload -Uz vcs_info |