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
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
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 '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
# 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
#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; } | |
} |
OlderNewer