Skip to content

Instantly share code, notes, and snippets.

@isentropic
isentropic / histogram2d.py
Last active May 6, 2020
Tensorflow histogram2d (Simple implementation)
View histogram2d.py
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 Mar 21, 2018 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 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 Nov 26, 2017 — forked from rbochet/.gitignore
.gitignore file for LaTeX projects on Mac
View .gitignore
# Latex files
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
You can’t perform that action at this time.