Skip to content

Instantly share code, notes, and snippets.

@tomhennigan
tomhennigan / gist:28026171c89d2fd3ec69
Last active August 29, 2015 14:04
Mesos logo Unicode art
echo " ╱┃┃╲ "
echo "$(tput setaf 6) ╱┃┃╲$(tput sgr0)╲┃┃╱$(tput setaf 6)╱┃┃╲$(tput sgr0) $(hostname)"
echo "$(tput setaf 6)┃╲╲┃┃╱╱┃┃╲╲┃┃╱╱┃$(tput sgr0) "
echo "$(tput setaf 6)┃╱╱┃$(tput sgr0)┃╲$(tput setaf 6)╲┃┃╱$(tput sgr0)╱┃$(tput setaf 6)┃╲╲┃$(tput sgr0) Mesos: http://1.2.3.4:1234/"
echo "$(tput setaf 6)┃╲╲┃$(tput sgr0)┃╱╱┃┃╲╲┃$(tput setaf 6)┃╱╱┃$(tput sgr0) Marathon: http://1.2.3.4:1234/"
echo "$(tput setaf 6)┃╱╱┃$(tput sgr0)┃╲╲┃┃╱╱┃$(tput setaf 6)┃╲╲┃$(tput sgr0) Chronos: http://1.2.3.4:1234/"
echo "$(tput setaf 6) ╲┃$(tput sgr0)┃╱╱┃┃╲╲┃$(tput setaf 6)┃╱$(tput sgr0) "
echo " ╲┃┃╱ "
@tomhennigan
tomhennigan / derp.py
Created September 4, 2015 07:41
matrix representation of a graph
def mkmatrix(size):
matrix = []
for _ in xrange(size):
matrix.append([False] * size)
return matrix
def addedge(matrix, nodea, nodeb):
matrix[nodea][nodeb] = True
matrix[nodeb][nodea] = True

Keybase proof

I hereby claim:

  • I am tomhennigan on github.
  • I am tomhennigan (https://keybase.io/tomhennigan) on keybase.
  • I have a public key ASBYlo52VYIkmCXuhjwFIkiDCp8HcTEgwkXCgEF4nMMLugo

To claim this, I am signing this object: