Skip to content

Instantly share code, notes, and snippets.

Harlow Ward harlow

View GitHub Profile
harlow /
Last active Jun 15, 2020
Nashville Hot Chicken

Nashville Hot Chicken


Salt and pepper brine the Chicken pieces for 24 hrs

Breading Station

Combine the following until the egg streaks are gone

harlow /
Created Jun 6, 2020
Terraform for Lambda func that reads Kinesis and writes to DynamoDB
provider "aws" {
region = "us-west-2"
profile = "myAWSProfile"
## IAM Role
resource "aws_iam_role" "iam_for_lambda" {
View checkpoint.go
package checkpoint
import (
harlow / profile.go
Last active Mar 11, 2017
Struct w/ return vals from Aboutme API
View profile.go
// if "name" is returned as `[]` in JSON payload the json.Unmarshal func will panic in Golang
// Name struct {
// GivenName string `json:"givenName"`
// FamilyName string `json:"familyName"`
// Formatted string `json:"formatted"`
// } `json:"name"`
type Profile struct {
ID string `json:"id"`
Hash string `json:"hash"`
RequestHash string `json:"requestHash"`
harlow / app_launched_event.rb
Last active Jan 6, 2017
Ruby based ETL pipeline with and Redshift
View app_launched_event.rb
# lib/transformers/mixpanel/app_launched_event.rb
module Transformers
module Mixpanel
class AppLaunchEvent
def initialize(data)
@data = data
def csv_row
harlow / worker-pool.go
Last active Apr 24, 2019
Worker pool to control concurrency and collect results
View worker-pool.go
package main
import (
const concurrency = 3
harlow /
Last active May 18, 2018
DynamoDB on Travis-CI

DynamoDB on Travis-CI

Leverage docker-compose to boot up the service and set a DYNAMODB_URL as an Env var. As described in the AWS Ruby SDK we can pass in a custom endpoint to the client.

client = ENV['DYNAMODB_URL'])
View registration.rb
class Registration
# Make this model play nice with `form_for`. Gives us validations, initialize, etc
include ActiveModel::Model
# Accessors for the fields we are exposing in the form
attr_accessor :email, :password, :zip
# This is an implementation detail of our authentication (Clearance). It's ultimately going to
# sign this object in and that process expects a user object that has these fields available
delegate :remember_token, :id, to: user
harlow / cache.go
Created Aug 24, 2016
Golang cache map
View cache.go
package cache
import (
You can’t perform that action at this time.