01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| [alias] | |
| # View abbreviated SHA, description, and history graph of the latest 20 commits | |
| l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
| # View the current working tree status using the short format | |
| s = status -s | |
| # Show the diff between the latest commit and the current state | |
| d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" |
| defmodule MyBlog.Repo.Migrations.CreatePost do | |
| use Ecto.Migration | |
| def change do | |
| create table(:posts, primary_key: false) do | |
| add :id, :uuid, primary_key: true | |
| add :body, :string | |
| add :word_count, :integer | |
| timestamps |
| ========================== | |
| How Software Companies Die | |
| ========================== | |
| - Orson Scott Card | |
| The environment that nurtures creative programmers kills management and | |
| marketing types - and vice versa. | |
| Programming is the Great Game. It consumes you, body and soul. When | |
| you're caught up in it, nothing else matters. When you emerge into |
This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.
Highly recommended things!
This is my five-star list. These are my favorite things in all the world.
A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "os" | |
| "syscall" | |
| "unsafe" | |
| "path/filepath" | |
| "bufio" |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "os" | |
| "syscall" | |
| "unsafe" | |
| "path/filepath" | |
| "bufio" |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| #!/bin/bash | |
| n=$1 | |
| g++ -o ${n} ${n}.cpp -std=c++14 -O2 | |
| for i in {0..10} ; do | |
| if [[ -e ${n}${i}.in ]] ; then | |
| ./${n} < ${n}${i}.in > ${n}${i}.xd | |
| diff -w -q ${n}${i}.xd ${n}${i}.out |