Skip to content

Instantly share code, notes, and snippets.

View ryanpitts's full-sized avatar

Ryan Pitts ryanpitts

View GitHub Profile
@rshorey
rshorey / instructions.md
Last active July 25, 2020 00:47
description of Lights, Camera, Algorithms session from SRCCON 2018

Lights, Camera, Algorithm

Act out and discuss machine learning algorithms. This activity is from a SRCCON 2018 session led by Jeremy Merrill and Rachel Shorey.

Materials

  • Index cards
  • pens/pencils
  • Dice with varying numbers of faces (several D10 and one D6 for sure)
  • Masking tape to mark floor
  • Paper, easel, marker
  • Stickers in several colors

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@risatrix
risatrix / gist:ceabdf7e8d00f9dbdd38
Last active February 10, 2016 23:13
Texas Tribune Pull Request Template

Here's our template for what should go in a pull request. This seems overly-verbose, but will help us:

  • manage technical debt
  • link pull requests to sprint tasks
  • give future developers a lot more context
  • give reviewers the context they need to understand the problem you're trying to solve and the acceptance criteria you're trying to meet.

It's nice, but not required to fill everything out when you first open your pull request. This template shouldn't be a barrier to contributing code - and you can open a PR with the words WIP in front, to let us know it's not quite there yet, then go back and update information at any time.

@jkeefe
jkeefe / troubleshooting_cron.md
Last active June 15, 2018 07:33
Troubleshooting Cron on EC2, which required both a permissions and a time zone fix.

2015-01-14 - Troubleshooting Cron on EC2

Today I had trouble getting a cron job to work.

The cron command was:

# run the lunchbot every weekday at 12:30 pm
30 12 * * 1-5 /home/ubuntu/bothouse/lunchbot/cron.sh > /home/ubuntu/bothouse/lunchbot/cron.log

The first problem, I discovered, was that cron.sh didn't have permissions set to be executable by the user (ubuntu).

@max-mapper
max-mapper / index.md
Last active August 1, 2023 00:45
bread machine + heat gun coffee roasting

bread machine + heat gun coffee roasting

aka a "corretto" roaster

Photos are available here

I have been meaning to put together a corretto for a couple of years now but never got around to it until this month. Here are the benefits:

  • cheap. equipment is cheap (see below) and super high quality unroasted coffee is ~6 bucks a pound. professionally roasted coffee is ~16 a pound.
  • quick (about 15 minutes to roast a batch that will last a few days of regular consumption)
  • high quality-to-dollar ratio. about 80-90% as good as professionally roasted coffee which is still 10-20x better than pre-roasted coffee. also higher relative quality than other cheap home roasting methods (like the air popper or skillet roasting)
  • don't blow your deadline
  • don't be wrong
@ashaw
ashaw / simple-fb-app.html
Created August 28, 2012 13:09
Simple FB JavaScript app example for HHBA
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<div id="fb-root"></div>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
@brianboyer
brianboyer / gist:1696819
Created January 29, 2012 02:21
Lion dev environment notes
@mtigas
mtigas / gist:1335214
Created November 2, 2011 22:57
Because you've always wanted a terminal screen tracking a live stream of "bieber" tweets.
@jeremyjbowers
jeremyjbowers / views.py
Created October 14, 2011 19:11
An example of class-based views in use at the Washington Post.
from django.views.generic import dates
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.contrib.syndication.views import Feed
from django.shortcuts import get_object_or_404
from django.db.models import Q, Count, Aggregate
from fallen.models import Casualty, Theater, Branch, HomeState, CauseOfDeath, IncidentProvince
from django.template.defaultfilters import upper
from haystack.views import SearchView
import datetime