Skip to content

Instantly share code, notes, and snippets.

View gcdr's full-sized avatar
😀
Better!

Glen Ritchie gcdr

😀
Better!
View GitHub Profile
@mbround18
mbround18 / .bashrc
Last active October 14, 2022 04:02
Personal bashrc
#--------------------------------------------------------------------------------------------
# if found on gist use `git clone https://gist.github.com/650d59476b86fbe885e66af953099006.git .`
# this is a modified version of Emmanuel Rouat [no-email] bashrc how to which can be found at
# `http://tldp.org/LDP/abs/html/sample-bashrc.html`
#--------------------------------------------------------------------------------------------
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
#-------------------------------------------------------------
@hzhou
hzhou / 150821.md
Last active August 17, 2017 17:14
Literate Programming

Tim Daly on literate programming: we write down code which is what we do, but we didn't write down why and this why is super important.

Consider the action of "go to school". It is getting the bag, puting on shoes, getting out of the doors, and walking toward the location called school. If we drescibe it action by action, later when we read it it will be a puzzle on what we are doing -- we are missing th e why. So consider following code:

$call go_to_school

subcode: go_to_school
    $call get_bag

$call put_on_shoes