Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am decarboxy on github.
* I am decarboxy (https://keybase.io/decarboxy) on keybase.
* I have a public key whose fingerprint is 3E88 126B E2A4 A50E 7DA5 29A3 AAEA A163 F76E 0BCB
To claim this, I am signing this object:
{
"metadata": {
"name": "",
"signature": "sha256:6335ee7f60fa3d7e18bcc12078dae74109eed1eefd9f8db3173673911bd82efc"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@decarboxy
decarboxy / words
Created August 29, 2013 14:28
wordlist
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": "analyze_network"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@decarboxy
decarboxy / rosetta_bounds.md
Last active December 20, 2015 03:19
we only check vector bounds in debug mode, this is causing us problems

The problem

Attempting to read a non-existant vector index in C++ results in undefined behavior. So this code:

int main(void)
{
	std::vector<int> x(2);
	std::vector<int> y(2);

x[0] = 1;

@decarboxy
decarboxy / sync_playlist.py
Last active December 19, 2015 04:38
A silly little script to sync an itunes playlist with a directory.
#!/usr/bin/env python
import plistlib
import sys
import urllib2
import hashlib
import json
import os
import shutil