apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre subversion git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev ruby1.9.3 nmap -y
gem install --verbose --debug pcaprub wirble pg sqlite3 msgpack activerecord redcarpet rspec simplecov yard bundler
import android.app.Activity; | |
import android.view.View; | |
import android.view.WindowManager; | |
import android.os.Bundle; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.content.BroadcastReceiver; | |
import android.content.res.Resources; | |
import android.util.Log; |
1 | |
The R language is a dialect of which of the following programming languages? | |
S | |
2 | |
The definition of free software consists of four freedoms (freedoms 0 through 3). Which of the following is NOT one of the freedoms that are part of the definition? | |
The freedom to prevent users from using the software for undesirable purposes. | |
3 | |
In R the following are all atomic data types EXCEPT |
# pretty-print a JSON result | |
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.' | |
# grab the data list | |
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data' | |
# Get *just* the first album | |
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data[0]' | |
# Narrow that first entry to some specific data |
This is a fork from https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
Thanks the original author Adam Pritchard for the generous sharing!
function split(str, pat) | |
local t = {} | |
local fpat = "(.-)" .. pat | |
local last_end = 1 | |
local s, e, cap = str:find(fpat, 1) | |
while s do | |
if s ~= 1 or cap ~= "" then | |
table.insert(t,cap) | |
end | |
last_end = e+1 |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF | |
appify v3.0.0 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
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