Skip to content

Instantly share code, notes, and snippets.

View jt14den's full-sized avatar
💭
I may be slow to respond.

Tim Dennis jt14den

💭
I may be slow to respond.
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
"African American Studies",
"African Studies",
"American Indian Studies",
"Anderson School of Management",
"Anthropology",
"Archaeology",
"Architecture",
"Architecture - M.Arch.",
"Architecture - M.S. in Architecture and Urban Design",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Hello Restructured Text

Info: See <http://docutils.sf.net/rst.html> for introductory docs.
Author: Tim Dennis
Date: $Date: $
Revision: $Revision: $
Description: This is a gist test for rst

Section One

  • brew install mutt
  • setup an app password for mutt in gmail
  • setup an app password for imap_notifier in gmail
  • brew install terminal-notifier terminal-notifier
  • gem install imap_notifier imap_notifier
  • brew install urlview
  • brew install w3m (links would be OK too)
  • Install pandoc to author in markdown and send as HTML

~/.muttrc

# coding: utf-8
# In[3]:
from splinter.browser import Browser
# In[2]:
@jt14den
jt14den / read csv and web scrape urls
Created October 22, 2013 20:46
web scraping urls and grabbing title/descript
import requests
from bs4 import BeautifulSoup
import csv
import time
LIBURL = ''
def read_svn_list_csv():
f = open('dir_file_lib.csv', 'rb')
reader = csv.reader(f)
while IFS=, read Col1 Col2
do
svn list --username uname --password pass -vR $Col2 | gawk -F"\t" 'BEGIN { OFS = "\t" }{print dir, $0 }' dir=$Col1
done < lib_web_svn.csv >> lib_svn_list_all.csv