Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Hide dog breeds
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.petfinder.com/*
// @grant none
// ==/UserScript==

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@zdwolfe
zdwolfe / gist:19f5a9b9a4c6e3fee439
Created January 24, 2016 04:08
ffmpeg -r 60 -pattern_type glob -i '*.JPG' -c:v mjpeg -q:v 2 output.60fps.avi
G0163438.JPG
G0163439.JPG
G0163440.JPG
G0163441.JPG
G0163442.JPG
G0163443.JPG
G0163444.JPG
G0163445.JPG
G0163446.JPG
G0163447.JPG
@zdwolfe
zdwolfe / gist:c7ccbb97666ce8ec2baa
Last active January 24, 2016 03:59
ffmpeg -r 60 -pattern_type glob -i '*.JPG' -c:v mjpeg -q:v 2 output.60fps.avi
G0022641.JPG
G0022642.JPG
G0022643.JPG
G0022644.JPG
G0022645.JPG
G0022646.JPG
G0022647.JPG
G0022648.JPG
G0022649.JPG
G0022650.JPG
@DataProvider(name = "searchBoxProvider")
public Object[][] searchBoxProvider() {
return new Object[][] {
{ "http://www.google.com", "lst-ib" , new DefaultSearchEngine()},
{ "https://duckduckgo.com", "search_form_input_homepage", new DuckDuckGo()},
{ "https://www.dogpile.com/", "topSearchTextBox", new DefaultSearchEngine()},
{ "http://www.bing.com", "sb_form_q", new DefaultSearchEngine()}
};
}
interface SearchEngine {
static void preparePage(WebDriver driver);
}
class DefaultSearchEngine implements SearchEngine {
static void preparePage(WebDriver driver) {
// do nothing
}
}
@DataProvider(name = "searchBoxProvider")
public Object[][] searchBoxProvider() {
return new Object[][] {
{ "http://www.google.com", "lst-ib" },
{ "https://duckduckgo.com", "search_form_input_homepage"},
{ "https://www.dogpile.com/", "topSearchTextBox"},
{ "http://www.bing.com", "sb_form_q"}
};
}
@DataProvider(name = "searchBoxProvider")
public Object[][] searchBoxProvider() {
return new Object[][] {
{ "http://www.google.com", "lst-ib" },
{ "https://duckduckgo.com", "search_form_input_homepage"},
{ "https://www.dogpile.com/", "topSearchTextBox"},
{ "http://www.bing.com", "sb_form_q"}
};
}
@DataProvider(name = "testStringProvider")
public Object[][] testStringProvider() {
return new Object[][] {
{ "blue", "BLUE" },
{ "red", "RED"}
};
}
@Test(dataProvider = "testStringProvider")
public void shouldConvertToUpperCase(String inputString, String expected ) {
@zdwolfe
zdwolfe / gist:0a505e4f903a87c5b6f6
Last active August 29, 2015 14:25
DataProvider Example
@DataProvider(name = "myTestData")
public Object[][] mytestData() {
return new Object[][] {
{ "Blue", "Fedora") },
{ "Red", "BaseballCap"},
};
}