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 random | |
import string | |
import sys | |
import textwrap | |
import yaml | |
r = lambda: random.randint(0,255) |
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
Politicians: | |
Lyndon B. Johnson: Scotch & Soda | |
Queen Elizabeth II: Gin & Dubonet | |
Richard Nixon: [Rum & Coke, Gin Martini] | |
Margaret Thatcher: Whiskey & Soda | |
Gerald Ford: Gin & Tonic | |
Napoleon Bonaparte: Absinthe | |
Barack Obama: Beer | |
Winston Churchill: Whiskey | |
Musicians: |
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
digraph Tipples { | |
label = "Famous\nTipples"; | |
subgraph cluster_film { | |
label = "Film"; | |
color = "#7E795D"; | |
humphreybogart [label = "Humphrey\nBogart"]; | |
georgelucas [label = "George\nLucas"]; | |
johntravolta [label = "John\nTravolta"]; | |
marilynmonroe [label = "Marilyn\nMonroe"]; | |
jenniferaniston [label = "Jennifer\nAniston"]; |
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 | |
# -*- coding: utf-8 -*- | |
# Copyright © 2016 Taylor C. Richberger <taywee@gmx.com> | |
# This code is released under the license described in the LICENSE file | |
import argparse | |
import random | |
import string | |
STARTSPECIAL = '$@#' |
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 | |
# -*- coding: utf-8 -*- | |
# To the extent possible under law, Taylor C. Richberger has waived all | |
# copyright and related or neighboring rights to mutt_octet_lookup. This work | |
# is published from: United States. | |
import argparse | |
import locale | |
import mailcap | |
import mimetypes |
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
# To the extent possible under law, Taylor C. Richberger has waived all copyright and related or neighboring rights to splittable. This work is published from: United States. | |
def splittable(table): | |
'''An incredibly simple routine to split a textual table based on "gutters" | |
in it. Only works on a line-by-line basis, so any tables with multi-line | |
rows will not work. It also needs a solid verticle whitespace gutter | |
between lines. Does not work with tabs. If you have a table with tabs, it | |
will need to be preexpanded before being passed in. Does not strip, so if | |
you need cells to be stripped, it will have to be done after this | |
function. The columns can only span to the shortest line, so empty columns |
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
/* 325 Easy - Color Maze | |
Written in 2017 by Taylor C. Richberger | |
To the extent possible under law, the author(s) have dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
You should have received a copy of the CC0 Public Domain Dedication along | |
with this software. If not, see | |
<http://creativecommons.org/publicdomain/zero/1.0/>. | |
*/ |
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
/* 325 Easy - Color Maze | |
Written in 2017 by Taylor C. Richberger | |
To the extent possible under law, the author(s) have dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
You should have received a copy of the CC0 Public Domain Dedication along | |
with this software. If not, see | |
<http://creativecommons.org/publicdomain/zero/1.0/>. | |
*/ |
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 ruby | |
# Copyright 2018 Taylor C. Richberger | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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 ruby | |
# Copyright © 2018 Taylor C. Richberger <taywee@gmx.com> | |
# This code is released under the MIT license | |
require 'set' | |
def square?(number) | |
Math.sqrt(number).round ** 2 == number | |
end |
OlderNewer