Skip to content

Instantly share code, notes, and snippets.

View edzzn's full-sized avatar
🎯
Focusing

Edisson Reinozo edzzn

🎯
Focusing
View GitHub Profile
@ramn
ramn / Deserialization.scala
Last active February 26, 2025 11:43
Object serialization example in Scala
import java.io._
@SerialVersionUID(15L)
class Animal(name: String, age: Int) extends Serializable {
override def toString = s"Animal($name, $age)"
}
case class Person(name: String)
// or fork := true in sbt
@karpathy
karpathy / min-char-rnn.py
Last active November 25, 2025 07:51
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@ilhnctn
ilhnctn / Çalışma Ortamı.md
Last active January 25, 2018 13:50
Installing Ubuntu

Terminal/Emilator Kurulumu

Mac-iTerm'e alışıksanız Terminator daha uyumludur.

sudo apt-get install guake

# Oh-my-god :)
apt-get install zsh
apt-get install git-core # if not installed
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
@doctorpangloss
doctorpangloss / repetition_algorithm.ipynb
Last active November 23, 2023 19:13
Supermemo 2 Algorithm, Unobscured (Python 3)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dsafreno
dsafreno / withDbData.js
Last active July 21, 2020 17:14
Helper to use Firebase RTDB with React more conveniently. From https://pragli.com/blog/how-we-use-firebase-instead-of-redux-with-react
import React from 'react';
import firebase from 'firebase/app';
import equal from 'deep-equal';
function filterKeys(raw, allowed) {
if (!raw) {
return raw;
}
let s = new Set(allowed);
return Object.keys(raw)