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/python3 | |
#Need | |
# https://github.com/googleapis/oauth2client | |
# https://github.com/googleapis/google-api-python-client | |
from apiclient.discovery import build | |
from apiclient.errors import HttpError | |
from oauth2client.tools import argparser |
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
""" | |
Read in CSV of label, value | |
Need two commandline arguments: csv and svg files. e.g. | |
python bubblify.py somefile.csv output.svg | |
Write SVG for circles of each value | |
Circle area varies with value from csv | |
Future: | |
No text labels currently |
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
<?php | |
/* | |
Read in CSV of label, value | |
Need two commandline arguments: csv and svg files. e.g., | |
php bubblify.php somefile.csv output.svg | |
Write SVG for circles of each value | |
Circle area varies with value from csv | |
Future: |
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/env python | |
#Disconnect your pebble from your phone | |
#Pair with your computer directly | |
#Launch the python script. Open the music app | |
import argparse | |
import os | |
import libpebble | |
import time |
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/R | |
# Main analysis for "Global Connectivity and Multilinguals in the Twitter Network" | |
# paper. See http://www.scotthale.net/pubs/?chi2014 for details. | |
# | |
# Author: Scott A. Hale (http://www.scotthale.net/) | |
# License: GPLv2 | |
# If you use this in support of an academic publication, please cite: | |
# | |
# Hale, S. A. (2014) Global Connectivity and Multilinguals in the Twitter Network. |
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/R | |
# Functions for R and ggplot2 to create log-scale density plots | |
# Main function: density.log(...) | |
# Produce a dataframe used to produce a density plot | |
# Input: | |
# data: dataframe, | |
# var: variable to plot on y-axis | |
# split: factor to split on |