Skip to content

Instantly share code, notes, and snippets.


Facundo Quiroga facundoq

View GitHub Profile
facundoq / greekLettersXmodmap
Created Aug 12, 2020
Xmodmap definitions for greek letters when typing AltGr+<letter>. Not all greek letters included. Can add more by getting letter names from
View greekLettersXmodmap
keycode 26 = e E e E Greek_epsilon Greek_EPSILON Greek_epsilon Greek_EPSILON
keycode 27 = r R r R Greek_rho Greek_RHO Greek_rho Greek_RHO
keycode 28 = t T t T Greek_theta Greek_THETA Greek_theta Greek_THETA
keycode 33 = p P p P Greek_pi Greek_PI Greek_pi Greek_PI
keycode 38 = a A a A Greek_alpha Greek_ALPHA Greek_alpha Greek_ALPHA
keycode 39 = s S s S Greek_sigma Greek_SIGMA Greek_sigma Greek_SIGMA
keycode 40 = d D d D Greek_delta Greek_DELTA Greek_delta Greek_DELTA
keycode 41 = f F f F Greek_phi Greek_PHI Greek_phi Greek_PHI
keycode 42 = g G g G Greek_gamma Greek_GAMMA Greek_gamma Greek_GAMMA
keycode 56 = b B b B Greek_beta Greek_BETA Greek_beta Greek_BETA
facundoq /
Created Apr 16, 2020
Generate a video by applying affine transformations to an image
# IMPORTANT install packages from command line
# pip install numpy scikit-video scikit-image
import numpy as np
from skimage import transform
import os
# read original image
facundoq /
Created Apr 20, 2018
Create synthetic 2D dataset with gaussian centers to test clustering algorithms
import numpy as np
import matplotlib.pyplot as plt
n=200 # samples per center
centers= [ [10,5], [-2,4], [13,-25], [11,20], [15,-30], [3,-2], ] # centers
#centers= [ [10,5], [-2,4], [11,20], [15,-34], ]
for i in range(len(centers)):
facundoq / mnist-lenet-without-fit.jl
Last active Apr 19, 2017
Training a lenet on mnist using MXNet.jl, without using the `fit` function
View mnist-lenet-without-fit.jl
using MXNet
function accuracy(predicted_probability::mx.NDArray,label::mx.NDArray)
facundoq / poligon_from_set_of_points
Created Aug 3, 2015
Order set of 2d points to convert to a poligon
View poligon_from_set_of_points
function [poligon,indices]=poligon_from_set_of_points(points,max_distance)
% Note that a subset of the points may be selected if the distance between
% two points exceeds max_distance
dist = pdist2(points,points);
N = size(points,1);
indices = NaN(1,N);
indices(1) = 1; % first point is first row in x matrix
facundoq / mandelbrot-julia-fractal-js
Created Aug 14, 2013
Draw fractals based on Mandelbrot and Julia sets in Javascript. Could use some cleanup. Change line 149 by calling other functions to change the fractal drawn.
View mandelbrot-julia-fractal-js
<!DOCTYPE html>
html, body { width: 100%; height: 100%; margin: 0; padding: 0}
#leap-overlay { position: fixed; top: 0; left: 0;}