Skip to content

Instantly share code, notes, and snippets.

View abachman's full-sized avatar
🙌
good times

Adam Bachman abachman

🙌
good times
View GitHub Profile
@abachman
abachman / candidates.json
Last active February 4, 2016 16:31
Baltimore Mayoral Race
[
{
"first": " Richard",
"last": "Black",
"city": "Democratic",
"status": "Baltimore City",
"joined": "Withdrawn - 11/18/2015",
"website": "Regular - 08/24/2015",
"facebook": "",
"twitter": "facebook.com/BlackforMayor",
@abachman
abachman / README.md
Last active August 27, 2020 18:02
How to Become a Cryptographer

Retrieved from Reddit 2015-12-10

As an undergrad who has recently become very interested in this field, I would like to know of a roadmap to develop a solid foundation in order to pursue a research career in cryptography. Things like course sequence, major/concentration, books, etc would be helpful.

Currently I'm a second year CS student and have noticed that my school's program focuses more on the practical side of things. Since cryptography requires a deep understanding of some abstract areas of math, would it be best to transfer to a pure math program?

Thanks in advance!

You should definitely have solid mathematical skills, but computer science helps as well. I did both (bachelors in both, masters in both, PhD in a mathematics/CS hybrid department).

@abachman
abachman / moving_connections_v002.pde
Created November 23, 2015 02:24
the Dreamcatcher Generator version
import java.util.Map;
import java.util.Set;
Center[] centers;
int[][] connections;
HashMap<Integer, Center> world;
static int PONS = 40;
static int CONS = 4;
static float STEP = 1;
@abachman
abachman / the-joys-of-the-craft.md
Last active September 9, 2024 06:30
The Joys of the Craft - Fred Brooks

The Joys of the Craft

Why is programming fun? What delights may its practitioner expect as their reward?

First is the sheer joy of making things. As the child delights in their mud pie, so the adult enjoys building things, especially things of their own design. I think this delight must be an image of God's delight in making things, a delight shown in the distinctness and newness of each leaf and each snowflake.

Second is the pleasure of making things that are useful to other people. Deep within, we want others to use our work and to find it helpful. In this respect the programming system is not essentially different from the child's first clay pencil holder "for Daddy's office."

Third is the fascination of fashioning complex puzzle-like objects of interlocking moving parts and watching them work in subtle cycles, playing out the consequences of principles built in from the beginning. The programmed computer has all the fascination of the pinball machine or the jukebox mechanism, carried to the ulti

@abachman
abachman / conway.rb
Last active September 21, 2015 14:51
An implementation of Conway's Game of Life in Ruby based on Sets
# Conway's Game of Life
# 2015-09-18
# by
# Nathan Hessler https://twitter.com/spune
# Adam Bachman https://twitter.com/abachman
# at Ruby DCamp 2015 http://rubydcamp.org/
# awesome test library
def assert(value)
if !value
@abachman
abachman / application.js
Last active August 29, 2015 14:21
My Fitness Pal
throw Error("Closure::Error: Exception in thread \"main\" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 51.0\n\tat java.lang.ClassLoader.defineClass1(Native Method)\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:643)\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:277)\n\tat java.net.URLClassLoader.access$000(URLClassLoader.java:73)\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:212)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:205)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:323)\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:268)\nCould not find the main class: com.google.javascript.jscomp.CommandLineRunner. Program will exit.\n\n (in /mnt/deploy/apps/staged/M
@abachman
abachman / remover.rb
Created November 22, 2014 00:59
selectively filtering word lists
require 'readline'
list1 = ARGV[0]
list2 = ARGV[1]
badwords = File.readlines(list1).map(&:strip)
words = File.readlines(list2).map(&:strip)
puts "remove #{ list1 } #{badwords.size} words from #{ list2 } #{ words.size }"
@abachman
abachman / Error: Invalid value for HOMEBREW_CC.md
Created November 18, 2014 21:08
Error: Invalid value for HOMEBREW_CC

Note to self:

If you run into "Error: Invalid value for HOMEBREW_CC" while trying to install things with homebrew on Mac OS X, make sure you don't have export HOMEBREW_CC=something in your ~/.bashrc file.

@abachman
abachman / test-harness.sh
Created September 30, 2014 18:33
YakShave test harness
function poptest {
nexttest=`head -n1 failed-tests.txt`
echo "removing $nexttest from the list"
sed 1d failed-tests.txt > failed-tests.txt.tmp; mv failed-tests.txt{.tmp,}
}
function runtest {
test_name=`find $1 -name "$2*" | head -n1`
if [ -n "$3" ]; then
@abachman
abachman / deacronym.rb
Last active August 29, 2015 14:01
Deacronym
#!/bin/env ruby
# Usage:
#
# $ deacronym ASDF
# Attracted Shrinking Development Finish
#
# You'll need your own copy of Seasoning of Wood by J.B. Wagner
# http://www.gutenberg.org/ebooks/26598