Skip to content

Instantly share code, notes, and snippets.

View akonradi's full-sized avatar

Alex Bakon akonradi

  • Richmond, VA
  • 12:33 (UTC -04:00)
View GitHub Profile
@akonradi
akonradi / bool.pb.validate.h
Created November 22, 2017 19:00
Protoc-gen-validate C++ numeric validation code
// Code generated by protoc-gen-validate
// source: tests/harness/cases/bool.proto
// DO NOT EDIT!!!
#include <string>
#include "tests/harness/cases/bool.pb.h"
namespace tests {
namespace harness {
@akonradi
akonradi / reddit_pics.html
Created May 23, 2016 21:39
Reddit Pics Screensaver
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- based on http://nirmalpatel.com/redditPicsSaver/redditPicsScreensaver.html -->
<html>
<head>
<base href="http://www.reddit.com/" target="_blank"/>
<title>Reddit Pics Screensaver</title>
<style type="text/css">
html, body {
@akonradi
akonradi / vigenere_solver.py
Created August 25, 2015 03:20
Python script that solves English Vigenere ciphers by comparing the input against the letter frequency distribution of the English language
import itertools
import string
import sys
import textwrap
"""
Run this script in a shell with the ciphertext to decode on STDIN
"""
####################################################################################################