Skip to content

Instantly share code, notes, and snippets.

Diego Mesa diego898

View GitHub Profile
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
" ----------------------------------------------------------------------------
" ----------------------------------------------------------------------------
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
diego898 /
Created Mar 13, 2018
python code to plot the point-normal version of a plane
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 / 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
View latex_math_colors.tex
% Load color package
% Define Seaborn colors
% Define FLATUI colors
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: ' Also see: There are also a bunch of random experiments from the tikz and beamer…
View beamer_presentation.tex
\usetikzlibrary{calc, intersections,through,backgrounds,positioning}
% \setbeameroption{show notes on second screen}
\setbeamertemplate{frame numbering}[none]
View userChrome.css
@namespace url("");
/* Improve Findbar */
@keyframes scale-in {
0% {
transform: scaleY(0);
100% {
transform: scaleY(1);
diego898 /
Last active May 4, 2018
This is a set of files to watch a directory where I place PDFs of papers and automatically create a corresponding tiddler for that paper.

This is a set of files to watch a directory where I place PDFs of papers and automatically create a corresponding tiddler for that paper.

  • Edit TW_LOC, TID_DEF_TAGS, and TID_TEXT in the bash script
  • Edit location of bash script in .scpt file
  • place the .scpt file in ~/Library/Scripts/Folder Action Scripts/
  • make sure you have a default program to open the .tid extension (if you want to keep the open line)
  • this uses gdate from coreutils to get the timestamp right
  • right click on the folder you want to watch and add a new folder action, selecting the .scpt file
  • make sure the shell script is executable

Keybase proof

I hereby claim:

  • I am diego898 on github.
  • I am diego ( on keybase.
  • I have a public key whose fingerprint is 8B24 A08D 5F16 3CE8 A2FB 206F F46E 5894 3150 5FEF

To claim this, I am signing this object:

You can’t perform that action at this time.