Skip to content

Instantly share code, notes, and snippets.

View zacharyc's full-sized avatar
Working from home

Zachary Cohen zacharyc

Working from home
View GitHub Profile
@zacharyc
zacharyc / connect.js
Created July 24, 2012 00:49
Crazy Loading of Screening.js Problem
console.log('############ running connect.js', a, Screening, Screening.launchApp());
var testWindow = window.open('', 'slave');
driver.switchTo().window('slave');
console.log(Screening);
driver.get('http://www.google.com');
driver.findElement(webdriver.By.name('q')).sendKeys('webdriver');
driver.findElement(webdriver.By.name('btnG')).click().then(function() {
driver.getTitle().then(function(title) {
@zacharyc
zacharyc / old_way.sh
Created June 7, 2012 01:12
Chromedriver with WebDriverJS
~ $ /Applications/chromedriver
@zacharyc
zacharyc / cheer-csv-parser.rb
Created May 1, 2012 15:00
Cheerleader CSV Parser
#!/Users/zacharyc/.rvm/rubies/ruby-1.9.2-head/bin/ruby
# This script assumes there is a folder named ./emails for the content to go into
require 'csv'
#load the cheerleaders
file = CSV.read("team.csv")
print file.class
@zacharyc
zacharyc / local-storage-logger.js
Created April 6, 2012 00:30
Local Storage Logger
//console.log("creating localStorageLogger;");
function logLocalStorage(message) {
var currentStack = localStorage.getItem("log");
localStorage.setItem("log", currentStack + ";\n " + new Date() + message);
}