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
#ubergeojson, #original { | |
line-color: @road; | |
line-width: 0.5; | |
[zoom>=11] { line-width: 0.5; } | |
[zoom>=12] { line-width: 0.7; } | |
[zoom>=13] { line-width: 1; } | |
[zoom>=14] { line-width: 1.2; } | |
[zoom>=15] { line-width: 1.4; } | |
[zoom>=16] { line-width: 1.6; } | |
} |
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
# Load libraries | |
library(ggplot2) | |
# Set working directory | |
setwd("~/Dropbox (Personal)/Personal/Github/MindBody/New/") | |
# Read in the data | |
data <- read.csv('mind_new.csv', header=TRUE, as.is=TRUE) | |
# Convert everything to lower case |
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
require 'oauth' | |
require 'json' | |
require 'pp' | |
require 'csv' | |
consumer_key = '#YOURS' | |
consumer_secret = '#YOURS' | |
token = '#YOURS' | |
token_secret = '#YOURS' |
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
require 'rubygems' | |
require 'nokogiri' | |
require 'pp' | |
require 'mechanize' | |
require 'open-uri' | |
require 'csv' | |
key = "## YOUR KEY HERE" |
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
require 'nokogiri' | |
require 'pp' | |
require 'mechanize' | |
require 'open-uri' | |
require 'csv' | |
page = Nokogiri::XML(open('https://www.mindbodyonline.com/clients/feed/all.xml')) | |
items = page.css('marker') | |
CSV.open("mind_new.csv", "wb") do |csv| |
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 processInbox() { | |
// get all threads in inbox | |
var threads = GmailApp.getInboxThreads(); | |
data_id = '1t70IDdWcaJzCIIaNWm2nHSPKzetHfTxhkKc9jKkAlpA' | |
var dataSs = SpreadsheetApp.openById(data_id); | |
var sheet = dataSs.getSheets()[0]; | |
var current_date = new Date(); | |
sheet.appendRow([current_date, current_date.toISOString(),threads.length]); | |
}; |
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 geocode_all() { | |
// grab basic sheet data | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); | |
var values = rows.getValues(); | |
// init some locals for looping over each row | |
var row; |
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
library(ggplot2) | |
library(lubridate) | |
## Set the working directory | |
setwd("~/Dropbox (Personal)/Personal/Github/Citibike") | |
## Organize restaurant data | |
r <- read.csv('trips.csv', header=TRUE, as.is=TRUE) | |
head(r) |
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
## API Structure | |
# { | |
# "name": "citibike_bay", | |
# "count": 8, | |
# "frequency": "realtime", | |
# "version": 1, | |
# "newdata": true, | |
# "lastrunstatus": "success", | |
# "lastsuccess": "Tue Jul 22 2014 21:50:19 GMT+0000 (UTC)", | |
# "results": { |
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
require 'oauth' | |
require 'json' | |
require 'pp' | |
require 'csv' | |
consumer_key = 'NUM' | |
consumer_secret = 'NUM' | |
token = 'NUM' | |
token_secret = 'NUM' |
NewerOlder