Skip to content

Instantly share code, notes, and snippets.

View jeradesign's full-sized avatar

John Brewer jeradesign

View GitHub Profile

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

#define fanOnOff 0x0100;
#define undulateNowStop: 0x0200;
#define fanManualAuto: 0x0400;
window_set_window_handlers(window, (WindowHandlers) {
.load = window_load,
.unload = window_unload,
});
#define BIT1 0x01
#define BIT2 0x02
#define BIT3 0x04
// ...
unsigned char value = 0;
if (flag1) {
value += BIT1;
@jeradesign
jeradesign / gist:11129246
Created April 21, 2014 00:47
All four ways to suppress "unused parameter" warnings in Xcode 5.1.1
- (BOOL)application:(UIApplication * __unused)application openURL:(NSURL *__attribute__((unused)))url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
#pragma unused(sourceApplication)
(void) annotation;
return YES;
}
@jeradesign
jeradesign / ViewController.m
Created January 3, 2014 04:07
Hard Coded UI Example
//
// ViewController.m
// HardCodedUITest
//
// Created by John Brewer on 7/15/13.
// Copyright (c) 2013 Jera Design LLC. All rights reserved.
//
#import "ViewController.h"
@jeradesign
jeradesign / Makefile_FingerSpike
Created November 21, 2013 22:49
Actual working Makefile from a project using a MacPorts install of OpenCV on a Mac.
INCLUDES = $(shell pkg-config --cflags opencv)
LIBS = $(shell pkg-config --libs opencv)
CXX = clang
CXXFLAGS = -std=c++11 -stdlib=libstdc++ -Wall -Werror -ggdb $(INCLUDES)
LDFLAGS = $(LIBS) -lstdc++
.PHONY: run
run: FingerSpike
./FingerSpike
@jeradesign
jeradesign / gist:6747714
Created September 28, 2013 23:20
List of fonts and font families added in iOS 7
Added Font Families:
- "Al Nile",
- "DIN Alternate",
- "DIN Condensed",
- Damascus,
- Farah,
- "Iowan Old Style",
- Menlo,
- Mishafi,
- "Savoye LET",
2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names (
"Academy Engraved LET",
"Al Nile",
"American Typewriter",
"Apple Color Emoji",
"Apple SD Gothic Neo",
Arial,
"Arial Hebrew",
"Arial Rounded MT Bold",
Avenir,
//
// Prefix header for all source files of the 'CVFunhouse' target in the 'CVFunhouse' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif