Skip to content

Instantly share code, notes, and snippets.

View DEKHTIARJonathan's full-sized avatar
👨‍🚀
Focused on breaking the speed of light. Beam me up, Scotty

Jonathan DEKHTIAR DEKHTIARJonathan

👨‍🚀
Focused on breaking the speed of light. Beam me up, Scotty
View GitHub Profile
@jimfleming
jimfleming / colorize.py
Last active November 25, 2022 19:36
A utility function for TensorFlow that maps a grayscale image to a matplotlib colormap for use with TensorBoard image summaries.
import matplotlib
import matplotlib.cm
import tensorflow as tf
def colorize(value, vmin=None, vmax=None, cmap=None):
"""
A utility function for TensorFlow that maps a grayscale image to a matplotlib
colormap for use with TensorBoard image summaries.
@guenp
guenp / simple_args_parsing.sh
Created May 25, 2019 00:25 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"