This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
GOCMD=go | |
GOTEST=$(GOCMD) test | |
GOVET=$(GOCMD) vet | |
BINARY_NAME=example | |
VERSION?=0.0.0 | |
SERVICE_PORT?=3000 | |
DOCKER_REGISTRY?= #if set it should finished by / | |
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true | |
GREEN := $(shell tput -Txterm setaf 2) |
function sendCSVviaEmail { | |
echo "Sending file via email..." | |
AWS_CLI="/usr/bin/aws" | |
SENDER=${EMAIL_SENDER} | |
RECIPIENT=${EMAIL_RECIPIENT} | |
SUBJECT=${EMAIL_SUBJECT} | |
BODY=${EMAIL_BODY} | |
ATTACHMENT_TYPE="text/plain" | |
ATTACHMENT_FILE_NAME="report.csv" |
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"mime/multipart" | |
"net/smtp" | |
"os" |
package server | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
// Server ... |
curl https://slack.com/api/files.upload -F token="${SLACK_TOKEN}" -F channels="${SLACK_CHANNEL}" -F title="${message_title}" -F filename="${filename}" -F file=@"${path_to_file}" |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
for k in $(git branch | sed /\*/d); do | |
if [ -n "$(git log -1 --before='1 month ago' -s $k)" ]; then | |
git branch -D $k | |
git push origin --delete $k | |
fi | |
done |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
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