Skip to content

Instantly share code, notes, and snippets.

View calvinfo's full-sized avatar

Calvin French-Owen calvinfo

View GitHub Profile
@karpathy
karpathy / min-char-rnn.py
Last active May 10, 2024 18:13
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)
@tj
tj / hackpad.css
Created January 15, 2015 12:33
Hackpad theme
body {
background-color: white;
color: rgba(0,0,0,0.8);
}
#editor {
box-shadow: none
}
ul.listtype-hone {
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@creationix
creationix / min-streams.md
Last active December 16, 2015 21:10
Min Streams Interface Spec

Min Streams Interface Spec

This spec describes a minimal stream interface meant for protocol implementors. Modules written to the interfaces in this spec can be used by a wide variety of projects. The protocols will not need any extra dependencies themselves. It's just an interface to implement.

Simple Stream

A simple stream is just a function. It represents a pull-stream. It has the following signature:

// Implementing a stream.
@kneath
kneath / eats.md
Created April 5, 2013 00:11
GitHub curated restaurants, mostly courtesy of @newmerator

Eats

###25 Lusk

  • This fine gem is perfect or two, or a large group. Great for familiy-style ordering, or just an appetizer, entrée and dessert.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 10, 2024 16:49
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname