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
#!/usr/bin/python | |
#requires pip install google-api-python-client | |
#requires pip install gdata | |
import sys | |
import os | |
import gdata | |
import time | |
import gdata.calendar.service | |
import gdata.calendar |
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
import smtplib | |
from email.MIMEText import MIMEText | |
GMAIL_LOGIN = '[email protected]' | |
GMAIL_PASSWORD = 'password' | |
def send_email(subject, message, from_addr=GMAIL_LOGIN, to_addr=GMAIL_LOGIN): | |
msg = MIMEText(message) |
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
local string = string | |
--local print = print | |
local tostring = tostring | |
local io = io | |
local table = table | |
local pairs = pairs | |
local capi = { | |
mouse = mouse, | |
screen = screen | |
} |
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
function emacs | |
echo "Using emacs client/daemon loader in config.fish..." | |
if ps -ef | grep "emacs --daemon" | grep -v grep | grep (whoami) | |
env emacsclient -t $argv | |
else | |
emacs --daemon | |
env emacsclient -t $argv | |
end | |
end |