Skip to content

Instantly share code, notes, and snippets.

View rfezzani's full-sized avatar

Riadh Fezzani rfezzani

  • VitaDX
  • Paris, France
View GitHub Profile
@Lajule
Lajule / .bash_functions
Last active March 13, 2025 13:28
Bash functions
# -*- mode: sh; tab-width: 2; -*-
# Source code url.
readonly BASH_FUNCTIONS_URL='https://gist.githubusercontent.com/Lajule/1839331f43eabb9d38e1933f337e96bc/raw/.bash_functions'
#######################################
# Display banner for scripts.
# Arguments:
# Given script name.
# Given template (optional).
@nvictus
nvictus / runlength.py
Last active October 7, 2023 19:54
NumPy run-length encoding / decoding
"""Run Length Encoding utilities for NumPy arrays.
Authors
-------
- Nezar Abdennur
- Anton Goloborodko
"""
from __future__ import division, print_function
import numpy as np