Skip to content

Instantly share code, notes, and snippets.

View lromor's full-sized avatar

Leonardo Romor lromor

  • Ellogon
  • Amsterdam
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lromor on github.
  • I am lromor (https://keybase.io/lromor) on keybase.
  • I have a public key whose fingerprint is A3C5 EB49 4E94 8889 BF45 E89E 2C0B 08E1 D43C 4A47

To claim this, I am signing this object:

@lromor
lromor / kernel-freeze.c
Last active December 27, 2017 22:26
beaglebone black freezes.
// Tested kernel freeze on Linux beaglebone 4.4.91-ti-r137
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <stdio.h>
@lromor
lromor / sim.py
Created May 14, 2019 11:26
Quick and dirty solar system dynamics
import numpy as np
from numpy.linalg import norm as l2
import matplotlib.pyplot as plt
class PlanetarySim():
# Masses e24 scale
DATA = (
('SUN', 1.98847e6),
@lromor
lromor / tinyimagenet.py
Last active April 28, 2024 18:07
TinyImageNet Dataset for Pytorch
# Copyright (C) 2022 Leonardo Romor
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the