Skip to content

Instantly share code, notes, and snippets.

View mannykoum's full-sized avatar

Manos Koumandakis mannykoum

View GitHub Profile
@mannykoum
mannykoum / points_on_sphere.py
Created September 6, 2018 23:41
A Python implementation of a naive algorithm to distribute points on a sphere at an almost equal distance to each other.
#!/usr/bin/env python3
# Module to distribute points on a sphere approximately equi-distant from each
# other. Written in C by Paul Bourke, July 1996.
# Translated in Python by Emmanuel Koumandakis, 2018.
# TODO: use Eigen, Numpy
from mpl_toolkits.mplot3d import axes3d, Axes3D
from matplotlib import pyplot as plt
import random, math
@mannykoum
mannykoum / bash_function_template.sh
Last active October 28, 2022 12:51
bash function template
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then