Skip to content

Instantly share code, notes, and snippets.

oooo oooo
`888 `888
888 .ooooo. .oooo. oooo ooo .ooooo. ooo. .oo. .oo. .ooooo. 888 .oo. .ooooo. oooo d8b .ooooo.
888 d88' `88b `P )88b `88. .8' d88' `88b `888P"Y88bP"Y88b d88' `88b 888P"Y88b d88' `88b `888""8P d88' `88b
888 888ooo888 .oP"888 `88..8' 888ooo888 888 888 888 888ooo888 888 888 888ooo888 888 888ooo888
888 888 .o d8( 888 `888' 888 .o 888 888 888 888 .o 888 888 888 .o 888 888 .o
o888o `Y8bod8P' `Y888""8o `8' `Y8bod8P' o888o o888o o888o `Y8bod8P' o888o o888o `Y8bod8P' d888b `Y8bod8P'
@ee-in
ee-in / min-char-rnn.py
Created December 2, 2015 22:58 — forked from karpathy/min-char-rnn.py
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)
@kgjenkins
kgjenkins / carson-projection.png
Last active July 18, 2016 21:48
Carson projection in CartoDB PostGIS
carson-projection.png
@paragonie-scott
paragonie-scott / crypto-wrong-answers.md
Last active February 3, 2026 15:39
An Open Letter to Developers Everywhere (About Cryptography)
@mick001
mick001 / neuralnetR.R
Last active November 26, 2023 19:12
A neural network exaple in R. Full article at: http://datascienceplus.com/fitting-neural-network-in-r/
# Set a seed
set.seed(500)
library(MASS)
data <- Boston
# Check that no data is missing
apply(data,2,function(x) sum(is.na(x)))
# Train-test random splitting for linear model
@karpathy
karpathy / min-char-rnn.py
Last active March 21, 2026 03:14
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)
@dominikus
dominikus / README.md
Last active August 29, 2015 14:06
Orientation Detect + d3.js Map

Orientation detect + d3.js map

Uses the device's motion sensors (accelometers + compass) to detect the current orientation and rotate the little globe correspondingly. Works therefore only on devices that create these motion events (e.g., smartphones, tablets).

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active March 6, 2026 14:36
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@dsparks
dsparks / rcp_xml.R
Created November 16, 2012 11:05
RealClearPolitics XML Scraping
doInstall <- TRUE # Change to FALSE if you don't want packages installed.
toInstall <- c("XML", "ggplot2", "lubridate", "reshape2", "scales")
if(doInstall){install.packages(toInstall, repos = "http://cran.r-project.org")}
lapply(toInstall, library, character.only = TRUE)
# Find your XML file from those listed at
# http://cdn.realclearpolitics.com/epolls/charts/
URL <- "http://cdn.realclearpolitics.com/epolls/charts/1171.xml"
parsedXML <- xmlParse(URL) # First pass
@robinsloan
robinsloan / langoliers.rb
Last active December 3, 2025 18:13
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"