Skip to content

Instantly share code, notes, and snippets.

@isentropic
isentropic / histogram2d.py
Last active January 7, 2022 13:50
Tensorflow histogram2d (Simple implementation)
import tensorflow as tf
@tf.function
def get2dHistogram(x, y,
value_range,
nbins=100,
dtype=tf.dtypes.int32):
"""
Bins x, y coordinates of points onto simple square 2d histogram
Given the tensor x and y:
@isentropic
isentropic / tmux.conf
Created March 21, 2018 07:03 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@isentropic
isentropic / .gitignore
Created November 26, 2017 07:31 — forked from rbochet/.gitignore
.gitignore file for LaTeX projects on Mac
# Latex files
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr