git config --global user.name "Mathieu CAROFF"
git config --global user.email "mathieu.caroff@free.fr"
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
#.tmux.conf | |
# upstream | |
# https://gist.github.com/jnaulty/55d03392c37e9720631a | |
# obtain | |
# ```bash | |
# curl https://gist.githubusercontent.com/mathieucaroff/7037f7f40e359d6a605638872bfd19c2/raw/.tmux.conf --output ~/.tmux.conf | |
# ``` |
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
package main | |
// An example of use of the go yaml v3 Node API | |
// Disclaimer: I'm very new to go. This code may miss a lot of Go goodnesses | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" |
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/bash | |
# test-shell-default-variables.sh | |
# Usage examples (you might want to `sudo apt install zsh ksh`): | |
# | |
# ./test-shell-default-variables.sh dash bash | |
# ./test-shell-default-variables.sh dash bash zsh ksh | |
# ./test-shell-default-variables.sh dash bash zsh ksh | less -R |
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 | |
# | |
# Fill a circle with 0 and 1's | |
# The circle is made of half as many lines as it is made of columns. | |
# This way, it usually appears round (with most terminal fonts at least). | |
# Accept the circle's width-radius as argument. See the default radius r, below. | |
r = 15 | |
from sys import argv | |
if len(argv) > 1: |
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
key::::00000000000000000000000000000000 | |
block::00000000000000000000000000000000 | |
crypt::66e94bd4ef8a2c3b884cfa59ca342b2e | |
block::ffffffffffffffffffffffffffffffff | |
crypt::3f5b8cc9ea855a0afa7347d23e8d664e | |
block::0000000000000000ffffffffffffffff | |
crypt::747cb9267e59fa9e4e615668db0909bc |
Output can be text or png (png requires graphviz). Can produce regular binary Collatz tree or Collatz-like trees without even numbers.
- Note: The trees start at 8 to avoid the 4-2-1 loop.
- Note': See the end of the file for two example text trees.
- Note": There is a .py version of this gist here: mathieucaroff/collatz-tree.py.
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
# Collatz tree generator. Output as text or png (png requires graphviz). | |
# Produces regular binary collatz tree or trees without even numbers. | |
# | |
# Note: The tree starts at 8 to avoid the 4-2-1 loop. | |
# Note': See the end of the file for two example text trees. | |
# | |
# Setup - on linux or wsl: | |
# ```shell | |
# sudo apt install python3-pip ipython3 graphviz | |
# sudo -H pip3 install anytree |
NewerOlder