Skip to content

Instantly share code, notes, and snippets.

Matthew Frazier leafstorm

Block or report user

Report or block leafstorm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leafstorm
leafstorm / lessons-learned.md
Last active Aug 29, 2015
FOSS Fair 2014: Lessons Learned. Originally derived from a pair of paper towels at Ba-Da Wings.
View lessons-learned.md

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 Apr 20, 2014
Some thoughts on Easter, and why it's important.
View easter.md

"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 Jul 31, 2014
An implementation of a Jython FastGetter that doesn't work for some reason.
View FastGetter.java
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 Aug 6, 2014
Command-line packages to download on Red Hat family machines
View packages.txt
nano
fish
tmux
man-pages
ntfs-3g
ack
tree
dos2unix
parallel
unzip
@leafstorm
leafstorm / streamncv.py
Created Nov 12, 2014
Python script for decoding NCSBE voter data
View streamncv.py
#!/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 Feb 4, 2015
Letter to Sen. Thom Tillis regarding his recent statements on hand-washing.
View tillis-letter.txt
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 Apr 6, 2015
The URL's to every shapefile offered for download by Wake County. `wget -i shapefile-urls.txt`
View 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 Jan 7, 2011
This is a sample chapter that doesn't make much sense after the first section intended to demonstrate reStructuredText for the Lua cookbook.
View networking.rst

Networking with LuaSocket

.. author:: 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 Jan 16, 2011
Example Thor file for testing using Gists with Thor.
View gist:782073
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 Jan 22, 2011
A draft of a Lua gateway interface to replace WSAPI.
View lasi.rst

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

You can’t perform that action at this time.