Skip to content

Instantly share code, notes, and snippets.

@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.
@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 / 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 / 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 / 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 / tillis-letter.txt
Created February 4, 2015 03:15
Letter to Sen. Thom Tillis regarding his recent statements on hand-washing.
Dear Sen. Tillis,
While it may be the case that some unnecessary regulations are overburdening
our small businesses, the idea that requiring employees to wash their hands
after using the bathroom is unnecessary is completely disgusting. Washing
hands is acknowledged by every medical authority ever as a critical way to
prevent the spread of germs and other contaminants. The idea that public
establishments should be able to forgo such requirements shows a serious
lack of concern for the health of your constituents. I strongly encourage
you to apologize for your use of hand-washing as an example of an "unnecessary
@leafstorm
leafstorm / shapefile-urls.txt
Created April 6, 2015 16:03
The URL's to every shapefile offered for download by Wake County. `wget -i shapefile-urls.txt`
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Buildings_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Communications_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_ElectricUtilities_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_FireResponse_2015_02.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Hydrology_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_HydrologyAreas_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_MiscLines_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_MiscPolys_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Parking_2013.zip
ftp://wakeftp.co.wake.nc.us/GIS/WebDownloads/SHAPEFILES/Raleigh_Railroads_2013.zip
@leafstorm
leafstorm / networking.rst
Created January 7, 2011 19:49
This is a sample chapter that doesn't make much sense after the first section intended to demonstrate reStructuredText for the Lua cookbook.

Networking with LuaSocket

Matthew Frazier <leafstormrush@gmail.com>

The most common library for networking in Lua is LuaSocket by Diego Nehab. In addition to low-level support for communicating directly through sockets, it also includes:

@leafstorm
leafstorm / gist:782073
Created January 16, 2011 19:39
Example Thor file for testing using Gists with Thor.
class Hello < Thor
include Thor::Actions
desc "hello NAME", "says hello to the given NAME"
def hello (name="World")
say "Hello, #{name}! It's nice to meet you!"
end
end
@leafstorm
leafstorm / lasi.rst
Created January 22, 2011 21:47
A draft of a Lua gateway interface to replace WSAPI.

Lua Application/Server Interface version 1.0

Author

Matthew "LeafStorm" Frazier <leafstormrush@gmail.com>

Date

February 4, 2011

Status

Early draft

This document specifies an interface between Web servers and Web applications written in the Lua programming language, to promote interoperability between Web servers and the development of an ecosystem of reusable components for Lua