Skip to content

Instantly share code, notes, and snippets.

@jtickle
jtickle / hilbert-term.py
Last active May 7, 2019 18:05
Hilbert Terminal Filling Curve
#!/usr/bin/env python3
import shutil;
import collections;
import math;
import sys;
import argparse;
Point = collections.namedtuple('Point', ['x', 'y', 'n'])
HilbertAt = collections.namedtuple('HilbertAt', ['x', 'y', 'n'])
// This: https://www.rabbitmq.com/tutorials/tutorial-one-go.html
// But without all the copied code between send and receive :)
package main
import (
"os"
"log"
"strings"
"github.com/streadway/amqp"