This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
CHUNK_TYPES = [b'SINF', b'ETN2', b'DAOX', b'CUEX', b'RELO', b'TOCT', b'DINF', | |
b'CDTX', b'MTYP', b'END!'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import curses | |
import sys | |
def create_win(nlines, ncols, begin_y, begin_x): | |
win = curses.newwin(nlines, ncols, begin_y, begin_x) | |
win.border() | |
win.refresh() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"black": "#282a2e", | |
"dark_blue": "#5f819d", | |
"dark_green": "#8c9440", | |
"dark_cyan": "#5e8d87", | |
"dark_red": "#a54242", | |
"dark_magenta": "#85678f", | |
"dark_yellow": "#de935f", | |
"gray": "#707880", | |
"dark_gray": "#373b41", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This module generates a passphrase using EFF's short word list (with words | |
that have unique three-character prefixes). | |
word list attribution: | |
https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This module generates a passphrase using EFF's long word list (for use with five dice). | |
word list attribution: | |
https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases | |
usage: passphrase_ex.py [-h] [-n NUMBER] [-s SEPARATOR] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module hexagon(side, height, center) { | |
length = sqrt(3) * side; | |
translate_value = center ? [0, 0, 0] : | |
[side, length / 2, height / 2]; | |
translate(translate_value) | |
for (r = [-60, 0, 60]) | |
rotate([0, 0, r]) | |
cube([side, length, height], center=true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import argparse | |
import datetime | |
import math | |
import sys | |
DEFAULT_FORMAT = r"%Y-%m-%d %H:%M" | |