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
## Turns list of dartmouth emails into formatted emails with first and last name | |
f = open("names.txt") | |
o = open("names_edit.txt", 'w') | |
for email in f.readlines(): | |
email = email.strip() | |
email = email[:-1] # Remove semicolon | |
bracket_email = "<" + email + ">" # Now its like <[email protected]> | |
at_index = email.rfind("@") | |
name = email[0:at_index-3] # get just the jason.s.feng |
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
# Housekeeping: clear workspace and load packages | |
rm(list=ls(all=TRUE)) | |
library(lubridate) | |
library(RgoogleMaps) | |
library(ggmap) | |
library(mapproj) | |
library(ggplot2) | |
library(plyr) | |
# Load 2011 GDELT data from http://eventdata.psu.edu/data.dir/GDELT.html |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">Valentine's Day 2013</tspan> | |
</label> | |
<actor t="translate(18,56)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-13,31|-20,14|1,34|6,9|-18,79|-18,59|-6,79|-1,59"> |