Skip to content

Instantly share code, notes, and snippets.

@leafstorm
leafstorm / streamncv.py
Created November 12, 2014 17:52
Python script for decoding NCSBE voter data
#!/usr/bin/env python3
"""
streamncv.py
============
Translates from latin-1 tab-separated-values to UTF-8 comma-separated values
on the fly, without trying to allocate the entire file.
It also prints progress updates.
"""
import csv
@leafstorm
leafstorm / packages.txt
Created August 6, 2014 22:37
Command-line packages to download on Red Hat family machines
nano
fish
tmux
man-pages
ntfs-3g
ack
tree
dos2unix
parallel
unzip
@leafstorm
leafstorm / FastGetter.java
Created July 31, 2014 18:18
An implementation of a Jython FastGetter that doesn't work for some reason.
package jesreflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.python.core.Py;
import org.python.core.PyObject;
/**
* An optimized getter that's designed to invoke a Java class's
* getSomething method, with no arguments, and wrap the return value.
@leafstorm
leafstorm / easter.md
Created April 20, 2014 20:57
Some thoughts on Easter, and why it's important.

"But now Christ has been raised from the dead, the firstfruits of those who have fallen asleep. For since death came through a man, the resurrection of the dead also comes through a man. For as in Adam all die, so also in Christ all will be made alive." -- 1 Corinthians 15:20-22

When I was at PyCon, I hung out with @jacobian, @brainwane, and some others while they were painting their nails. The subject turned to religion, and I quickly realized as a person who wasn't a secular humanist, I was a bit of an outlier.

When asked, I began talking about some of what's in the Bible. Jacob asked, "So, you believe the things in the Bible actually happened?" I said "yes." The conversation didn't last long afterwards...we were interrupted by something, I forget what. But given that it's Easter, I'd just like to expound a bit on how that idea is relevant to Christ's resurrection.

The attitude I see a lot of humanists have towards religion is, "Hey, believe whatever you want, so long as it makes you a better person." In

@leafstorm
leafstorm / lessons-learned.md
Last active August 29, 2015 13:56
FOSS Fair 2014: Lessons Learned. Originally derived from a pair of paper towels at Ba-Da Wings.

FOSS Fair 2014: Lessons Learned

First off, FOSS Fair was a lot of fun, and I really look foward to the next one. But, I think we can run it better next time. So, here are my thoughts.

Early Coordination

We were disadvantaged this FOSS Fair by our late start date and our lack of connections. Fortunately, next year we can get started earlier, and we have a few key ideas:

  • Announce the Fair and call for volunteers as early as possible.