For fun, I recreated a subset of Flutter that is sufficient to build a tiny Minesweeper application for the terminal.
Here is how it looks:
+----------------------+
|Minesweeper 3/12|
| |
import numpy as np | |
import re | |
NUMBER = re.compile(r'[0-9]+(\.[0-9]+)?') | |
def tokenize(s): | |
orig_str = s | |
while len(s) > 0: | |
m = NUMBER.match(s) | |
if m: |
<IfModule mod_headers.c> | |
Header set Strict-Transport-Security "max-age=0; includeSubDomains; preload" env=HTTPS | |
</IfModule> |
""" | |
Add copy to clipboard from IPython! | |
To install, just copy it to your profile/startup directory, typically: | |
~/.ipython/profile_default/startup/ | |
Example usage: | |
%clip hello world | |
# will store "hello world" |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"