- Create or find a gist that you own.
- Clone your gist (replace
<hash>
with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
<hash>
with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist
local alias_table = {} | |
function alias_table:new(weights) | |
local total = 0 | |
for _,v in ipairs(weights) do | |
assert(v >= 0, "all weights must be non-negative") | |
total = total + v | |
end | |
assert(total > 0, "total weight must be positive") |
#! /usr/bin/env python | |
# tree.py | |
# | |
# Written by Doug Dahms | |
# | |
# Prints the tree structure for the path specified on the command line | |
from os import listdir, sep | |
from os.path import abspath, basename, isdir |