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/python3 | |
# This script will calculate the distribution of rolling any number | |
# of mixed-sided dice. | |
# Example usage: python3 dice.py 3d6 1d20 | |
# | |
# The above would calculate the distribution of rolling four dice |
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
#! /bin/dash | |
# version 20210616 | |
# flatpak.sh is a demo that shows how to install and run Flatpak | |
# packages inside of an Alpine Linux guest userland inside Lxroot. | |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Line Chart</title> | |
<script | |
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" | |
></script> |
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
local reset = '\027(B\027[m' | |
function cellx ( prefix_core, text ) ----------------------------- cellx | |
io .write ( reset ) | |
io .write ( ('\27[%sm') : format ( prefix_core ) ) | |
io .write ( text ) | |
io .write ( reset ) 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
import collections, curses, threading | |
event = threading.Event () | |
keys = collections.deque () | |
run = threading.Event () | |
def reduce ( keys ): | |
t = [] | |
for n in keys : | |
if n == 0 : t.append ( '^@' ) |