Skip to content

Instantly share code, notes, and snippets.

Avatar

Mathieu CAROFF mathieucaroff

  • IMT Atlantique
  • Montigny-le-Bretoneux
View GitHub Profile
@mathieucaroff
mathieucaroff / collatz-tree.py
Created Sep 10, 2018
Collatz tree generator. Output as text or png (png requires graphviz). Produces regular binary collatz tree or trees without even numbers.
View collatz-tree.py
# 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
@mathieucaroff
mathieucaroff / collatz-tree.md
Last active Sep 10, 2018
Tree for Collatz conjecture / Syracuse conjecture / Hailstone sequence. Output can be text or png (png requires graphviz). Can produce regular binary Collatz tree or Collatz-like trees without even numbers.
View collatz-tree.md

Collatz tree generator

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.

Setup for linux or wsl

@mathieucaroff
mathieucaroff / raspi3-router-tuto.md
Last active Nov 1, 2018
Using a raspberryPi 3 as wifi router
View raspi3-router-tuto.md

Using a raspberryPi 3 as wifi router

... with raspbian OS

Written after trying a number of other techniques which failed. (2018-08-31)

I. Get Network-Manager to work on Raspbian

By default, because of a bug, Network-Manager doesn't manage wifi. It can be worked around though.

You can’t perform that action at this time.