Skip to content

Instantly share code, notes, and snippets.

View jeremyjbowers's full-sized avatar

Jeremy Bowers jeremyjbowers

View GitHub Profile

OBSERVATION ONE, RACISM AND WHITENESS

Dairy subsidies embody a form of institutional and economic racism because non-white school children are proportionately much more likely to be lactose intolerant. Thus, for 70 percent of black kids in public schools, crippling digestive issues are practically mandated by the US Government though its subsidy program for dairy products.

GREENE 2002 Che, July 9, "Not Milk: The USDA, Monsanto, and the U.S. Dairy Industry" AlterNet http://www.alternet.org/story/13557/

With the recent passage of the Farm Bill on May 13, 2002, dairy farmers and processors will receive $2 billion more in subsidies over the next three and a half years, largely realized through price supports that inflate costs for consumers. Dairy subsidies are a carryover from the Depression era, when survival of small dairy farmers was considered essential to maintaining a national food supply. Today, a large chunk of that additional $2 billion in subsidies is going to large dairy farms in twelv

@jeremyjbowers
jeremyjbowers / draft.py
Created May 9, 2014 00:36
This will run every 5 seconds and update NFL draft information. Requires requests.
#!/usr/bin/env python
import datetime
import threading
import time
import requests
def request_draft_info():
threading.Timer(5, request_draft_info).start();
@jeremyjbowers
jeremyjbowers / optimal_lineup_assumptions.md
Created May 14, 2014 20:20
Notes for optimal lineup generator

Assumptions

Rules

  • Lineups are composed of 11 players.
  • Lineups are 8 men and 3 women.

Offense

  • Players have an OBP rating that is a proxy for not getting out.
    • 0: In a given at-bat, a player has less than a 1 in 10 chance of not getting an out.
  • 10: In a given at-bat, a player has greater than a 9 in 10 chance of not getting an out.
from django.contrib import admin
from housing.models import HouseInformation, InspectionReport
class HouseInformationAdmin(admin.ModelAdmin):
fieldsets = (
(None, {
'fields': ('house_name', 'house_type')
}),
('Location', {
'fields': ('address', 'longitude', 'latitude')
#!/bin/bash
#
# GLASSHOLE.SH
#
# Find and kick Google Glass devices from your local wireless network. Requires
# 'beep', 'arp-scan', 'aircrack-ng' and a GNU/Linux host. Put on a BeagleBone
# black or Raspberry Pi. Plug in a good USB wireless NIC (like the TL-WN722N)
# and wear it, hide it in your workplace or your exhibition.
#
# Save as glasshole.sh, 'chmod +x glasshole.sh' and exec as follows:
rm -f output.csv
ogr2ogr -f CSV -t_srs EPSG:4326 -lco GEOMETRY=AS_XY -nln output output.csv input.vrt
@jeremyjbowers
jeremyjbowers / sweet_corn_cheesecake.md
Last active July 23, 2016 15:55
Sweet Corn Cheesecake

Sweet Corn Cheesecake

Crust

  • 4 ounces ritz crackers, crushed
  • 1/4 teaspoon coarse salt
  • 1/3 cup sugar
  • 4 tablespoons unsalted butter, melted

Custard

  • 1 pint of heavy cream
  • 3/4 cups of freeze-dried corn, powdered
@jeremyjbowers
jeremyjbowers / exoskeletons_planning.md
Last active August 29, 2015 14:04
Exoskeletons for reporters!

Exoskeletons

What does that mean?

An exoskeleton is an interesting thing. It presupposes the existence of another being underneath it. By way of comparison:

  • An exoskeleton is not a robot, though it may contain some robotic enhancements.
  • An exoskeleton is not a drone, though it may offer the user with sensors or other data.
  • An exoskeleton is not AI or an algorithm, though it might use these things to make its user more efficient.

At it's root, an exoskeleton does only what you do. It just does those things better.

@jeremyjbowers
jeremyjbowers / coffee_equipment.md
Last active August 29, 2015 14:04 — forked from dansinker/gist:474089205beb6ec02e20
The coffee equipment from SRCCON's coffeetown.
@jeremyjbowers
jeremyjbowers / alerter.py
Last active August 29, 2015 14:05
Hate not knowing when AK Senate results will be reported? Here you go.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import threading
from bs4 import BeautifulSoup
import requests
def check_results():
threading.Timer(30.0, check_results).start()