Skip to content

Instantly share code, notes, and snippets.

@diego898
diego898 / activations.py
Created Oct 30, 2020
misc plotting code for our NN discussion
View activations.py
fig = plt.figure(figsize=(30,10))
# loss/acc
ax11 = plt.subplot(241)
ax11.plot(range(len(epoch_loss)),np.array(epoch_loss));
ax11.set_title('Epoch loss')
ax21 = plt.subplot(245)
ax21.plot(range(len(epoch_acc)),np.array(epoch_acc));
ax21.set_title('Epoch acc')
View Linear Ttransformations Walkthrough.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Horizon Time Sampling.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View init.vim
" ----------------------------------------------------------------------------
" GENERAL SETTINGS
" ----------------------------------------------------------------------------
scriptencoding utf-16 " allow emojis in vimrc
set encoding=utf-8 " necessery encoding for powerline
set nocompatible " vim, not vi
syntax on " syntax highlighting
filetype plugin indent on " try to recognize filetypes and load rel' plugins
let mapleader = ',' " set the mapleaders before mappings!
View aspell.conf
add-tex-command citep op
add-tex-command cref op
add-tex-command eqref op
dont-tex-check-comments
@diego898
diego898 / point-normal-plane-plot.py
Created Mar 13, 2018
python code to plot the point-normal version of a plane
View point-normal-plane-plot.py
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
%matplotlib inline
import seaborn as sns
# set normal vector, and point on plane
point = np.array([1, 2, 3])
normal = np.array([1, 1, 2])
@diego898
diego898 / latex_math_colors.tex
Last active Feb 26, 2018
Defining some nice colors for use in latex math. Some are from seaborn, others are from https://flatuicolors.com
View latex_math_colors.tex
% Load color package
\usepackage{xcolor}
% Define Seaborn colors
\definecolor{seabornBlue}{RGB}{76,114,176}
\definecolor{seabornGreen}{RGB}{85,168,104}
\definecolor{seabornRed}{RGB}{196,78,82}
% Define FLATUI colors
\definecolor{orangePumpkin}{RGB}{211,84,0}
@diego898
diego898 / beamer_presentation.tex
Last active Apr 24, 2018
A sample beamer presentation using the metropolis theme. These slides where generated white watching Michelle Krummel`s excellent youtube tutorial: 'https://www.youtube.com/watch?v=0fsWGg81RwU Also see: http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf There are also a bunch of random experiments from the tikz and beamer…
View beamer_presentation.tex
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{tikz,ifthen}
\usetikzlibrary{calc, intersections,through,backgrounds,positioning}
\usepackage{pgfpages}
\usepackage{blindtext}
\usepackage{multicol}
% \setbeameroption{show notes on second screen}
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[none]
\metroset{block=fill}
View userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Improve Findbar */
@keyframes scale-in {
0% {
transform: scaleY(0);
}
100% {
transform: scaleY(1);
}