Skip to content

Instantly share code, notes, and snippets.

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

@adidoit
adidoit / add_datepart.py
Created November 4, 2018 20:37
Add date part code (from fast.ai 0.7)
def add_datepart(df, fldname, drop=True, time=False):
"Helper function that adds columns relevant to a date."
fld = df[fldname]
fld_dtype = fld.dtype
if isinstance(fld_dtype, pd.core.dtypes.dtypes.DatetimeTZDtype):
fld_dtype = np.datetime64
if not np.issubdtype(fld_dtype, np.datetime64):
df[fldname] = fld = pd.to_datetime(fld, infer_datetime_format=True)
targ_pre = re.sub('[Dd]ate$', '', fldname)
@adidoit
adidoit / nytimes_downloader.py
Created January 30, 2017 15:39
NYTimes API Downloader
# Adi Pradhan
# Ross MBA 2017
# Winter 17
# https://developer.nytimes.com/
import json
import requests
import time
import urllib
import boto
@adidoit
adidoit / guardian_openplatform.py
Created January 30, 2017 15:36
Guardian API Query
# Adi Pradhan
# Winter 2017
# http://open-platform.theguardian.com/ API integration code
import json
from HTMLParser import HTMLParser
import json
import requests
import time
import urllib
@adidoit
adidoit / .vimrc
Created January 26, 2015 02:33
My vimrc
:syntax on
:set nu
filetype plugin on
set omnifunc=syntaxcomplete#Complete
let g:rubycomplete_buffer_loading = 1
let g:rubycomplete_classes_in_global = 1
let g:rubycomplete_rails = 1
@adidoit
adidoit / .bashrc
Last active August 29, 2015 14:14
My Preferred .bashrc
# PS1 for coloring
PS1='\[\033[02;32m\]\u@\H:\[\033[02;34m\]\w\$\[\033[00m\] '
# from http://vvv.tobiassjosten.net/git/add-current-git-branch-to-your-bash-prompt/
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset=`tput sgr0`
c_user=`tput setaf 2; tput bold`
c_path=`tput setaf 4; tput bold`
c_git_clean=`tput setaf 2`
c_git_dirty=`tput setaf 1`
@adidoit
adidoit / gist:ab24684926524955c57f
Created August 26, 2014 01:47
curl FTPS with client certificate authentication
curl -v --user <username> --ftp-ssl --ftp-ssl-reqd --ftp-pasv --disable-epsv --key mykey.pem --cert mycert.crt -T pubkey.txt ftp://<ip-addr>/<folder>
@adidoit
adidoit / gist:10517345
Created April 12, 2014 03:29
Hubs, Routers and Switches
From http://kl2217.wordpress.com/2009/07/22/repeaters-hubs-bridges-switches-and-routers/
Repeater and Hub are layer 1 devices. Repeater address the issue of attenuation. Attenuation is the loss of signal over distance. Repeater rebuilt the electrical signal that comes in and send it out to other side. Hub is a multi-port repeater. Electrical signal came into any one hub port will be repeated on all other ports.The layer 1 devices are dumb, they have no decision making abilities. Hubs do not read any of the data passing through them, and they are not aware of the source or destination of the frame. All the devices attached to a hub are belong to one collision domain, which means if two hosts try to send data at the same time, a collision will occur. All the devices attached to a hub are also belong to one braoadcast domain, that is, broadcast frame sent by one host will be received by all other hosts in the network.
Bridge and Switch are layer 2 devices. They can make decisions about to which port the fram
@adidoit
adidoit / oracle_install.sh
Last active August 29, 2015 13:57
Oracle 11gR2 on CentOS6.5
(1) INSTALL THE NECESSARY PACKAGES
#install the necessary packages as root
yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel bc flex
(2) EDIT KERNEL PARAMETERS
#change the system parameters as needed
@adidoit
adidoit / gist:9665727
Created March 20, 2014 14:59
CentOS 6.5 VirtualBox Guest Additions
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl