Skip to content

Instantly share code, notes, and snippets.

@robertsdionne
robertsdionne / base32hex-floats
Last active July 30, 2022 06:08
base32hex float literals for convenient representation of standard binary prefixes like kibi-, mebi-, gibi-, tebi-, etc.
As "hexadecimal" derives from "hexa" for 6 and "decimal" for 10,
"duotrigesimal" can be drived for "2" and "30" similarly, for base32. See: https://math.stackexchange.com/a/4263272
Base32hex is a character set that extends the hexadecimal digits with additional letters of the alphabet until
it reaches 32 values, [0-9a-vA-V]. See: https://en.wikipedia.org/wiki/Base32#base32hex
In the English alphabet, "W" is the next letter after the base32hex alphabet, so it would work as the delimiter for
the base prefix 0w (analogous to 0x for hexadecimal), and also the top of the letter "W" has 3 points, and the
bottom has 2 points, signifying 32.
#!/usr/local/bin/python3
import glob
import h5py
import matplotlib.animation as animation
import matplotlib.pyplot as plot
import numpy as np
import tensorflow as tf
@robertsdionne
robertsdionne / deepdream-install.md
Last active February 15, 2021 16:07
Deepdream installation
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
@robertsdionne
robertsdionne / deepdream-docker.bash
Last active August 29, 2015 14:24
Deepdream Docker image setup instructions
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install the Homebrew package manager if you don't already use it; see source http://brew.sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install VirtualBox by hand or with homebrew
# By hand: https://www.virtualbox.org/wiki/Downloads
# Homebrew:

Keybase proof

I hereby claim:

  • I am robertsdionne on github.
  • I am robertsdionne (https://keybase.io/robertsdionne) on keybase.
  • I have a public key whose fingerprint is 1B68 BF37 7CA5 8C12 D376 5F2D 5722 3D7A 5842 5B1D

To claim this, I am signing this object: