View local-storage-logger.js
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
//console.log("creating localStorageLogger;"); | |
function logLocalStorage(message) { | |
var currentStack = localStorage.getItem("log"); | |
localStorage.setItem("log", currentStack + ";\n " + new Date() + message); | |
} |
View cheer-csv-parser.rb
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
#!/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 |
View old_way.sh
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
~ $ /Applications/chromedriver |
View connect.js
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
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) { |
View fonts.css
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
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700); |
View gist:3679365
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
{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} }, | |
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} }, | |
{ "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, | |
{ "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} }, |
View gist:5542245
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
NSArray *syms = [NSThread callStackSymbols]; | |
if ([syms count] > 1) { | |
NSLog(@"%@ - caller: %@", NSStringFromSelector(_cmd),[syms objectAtIndex:1]); | |
} |
View .gitignore
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
# Ignore all node modules | |
node_modules | |
# Ignore Mac OS stupidness | |
.DS_Store | |
# Ignore editor junk | |
.idea | |
atlassian-ide-plugin.xml | |
TEST-*.xml |
View createSite.rb
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 ruby | |
if ARGV.count < 1 | |
puts "Usage: #{$0} projectName" | |
exit | |
end | |
projectName = ARGV[0]; | |
puts "Creating a web project: " + projectName |
View gist:8141791
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
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
if (indexPath.section == TIP_SECTION && indexPath.row == TIP_ROW) { | |
if (cell.userInteractionEnabled) { | |
[cell layoutSubviews]; | |
UIView *editView = [self pencilView]; | |
editView.frame = CGRectMake(cell.textLabel.frame.origin.x + cell.textLabel.frame.size.width + X_OFFSET, | |
cell.textLabel.frame.origin.y - Y_OFFSET, | |
editView.frame.size.width, | |
editView.frame.size.height); |
OlderNewer