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

Keybase proof

I hereby claim:

  • I am smurfpandey on github.
  • I am smurfpandey (https://keybase.io/smurfpandey) on keybase.
  • I have a public key ASCbfGueVeyocfyhiVnXddRvg8WSz3c5cGnZeZ3ctB5HQAo

To claim this, I am signing this object:

@smurfpandey
smurfpandey / cordova-file-io.js
Created March 3, 2017 10:53
Write data to file using cordova file plugin. This snippet uses promise using q.js
var fnCreateDirectoryInFileSystem = function (rootPath, newFolderName) {
var deferred = Q.defer();
var fnDirFail = function (err) {
//Root path missing
deferred.reject();
};
var fnGotDir = function (dirEntry) {
//Create the first directory
@smurfpandey
smurfpandey / cordova-file-io.js
Created March 3, 2017 10:52
Write data to file using cordova file plugin.
var fnCreateDirectoryInFileSystem = function (rootPath, newFolderName) {
var deferred = Q.defer();
var fnDirFail = function (err) {
//Root path missing
deferred.reject();
};
var fnGotDir = function (dirEntry) {
//Create the first directory
public static void postNewComment(Context context,final UserAccount userAccount,final String comment,final int blogId,final int postId){
mPostCommentResponse.requestStarted();
RequestQueue queue = Volley.newRequestQueue(context);
StringRequest sr = new StringRequest(Request.Method.POST,"http://api.someservice.com/post/comment", new Response.Listener<String>() {
@Override
public void onResponse(String response) {
mPostCommentResponse.requestCompleted();
}
}, new Response.ErrorListener() {
@Override
var apn = require('apn');
var token = "<token here>";
var service = new apn.connection({
maxConnections: 1
});
service.on("completed", function() { console.log("Completed!")});
service.on("connected", function() { console.log("Connected"); });
@smurfpandey
smurfpandey / web.config
Last active March 18, 2017 02:23 — forked from Blackmist/gist:6701556
web.config for running node.js applications inside IIS with IISNode
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="index.js" verb="*" modules="iisnode" />
</handlers>
<iisnode node_env="production" />
<rewrite>
<rules>
<rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");