Skip to content

Instantly share code, notes, and snippets.

View jhlegarreta's full-sized avatar

Jon Haitz Legarreta Gorroño jhlegarreta

View GitHub Profile
@jhlegarreta
jhlegarreta / umap_sparse.py
Created October 13, 2018 19:08 — forked from johnhw/umap_sparse.py
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@jhlegarreta
jhlegarreta / neural-style.py
Created September 9, 2018 15:55
Pytorch tutorials for Neural Style transfer
"""
Pytorch tutorials for Neural Style transfer
https://github.com/alexis-jacq/Pytorch-Tutorials
"""
# Packages
from PIL import Image
import torch
from torch import nn, optim
from torch.autograd import Variable
@jhlegarreta
jhlegarreta / git-log-to-tikz.rb
Created November 16, 2017 18:23 — forked from lckarssen/git-log-to-tikz.rb
Extract git history to tikz picture
#!/usr/bin/env ruby
# A small ruby script to extract a git history to a tikz picture
# Author: Michael Hauspie <Michael.Hauspie@lifl.fr>
# Author: Lennart C. Karssen <lennart@karssen.org>
#
# Not clean code, not always working well, but does its job in most of
# the cases I needed :)
#
# LCK: Added some ideas from this tex.stackexchange answer: