Skip to content

Instantly share code, notes, and snippets.

View derekbrameyer's full-sized avatar

Derek Brameyer derekbrameyer

  • WillowTree Inc.
  • Durham, NC
View GitHub Profile
@derekbrameyer
derekbrameyer / gist:37e4304763e818a60c2e
Created December 11, 2015 21:55
WT White Elephant 2015
Welcome to White Elephant! Please input names line by line. When you are finished inputting names, press enter on a blank line.
Participant name: Erika Cober
Participant name: Kevin Conner
Participant name: Derek Brameyer
Participant name: Jeff Pamer
Participant name: Eric Richardson
Participant name: Andrew Harris
Participant name: Fabian Reddig
Participant name: Hyun-Woo Park
@derekbrameyer
derekbrameyer / truefacts.md
Last active August 29, 2015 14:02
TRUE FACTS ABOUT WHY VIRGINIA IS BETTER THAN MARYLAND

TRUE FACTS ABOUT WHY VIRGINIA IS BETTER THAN MARYLAND

Virginia's total land area is 39,490 square miles. Compare this to Maryland, at a meager 9,707.

Virginia's 2013 population is 8,260,405. Compare this to Maryland, at just 5,928,814.

@derekbrameyer
derekbrameyer / InterceptingListView.java
Last active August 29, 2015 14:02
InterceptingListView, an Android ListView to use with SlidingUpPanel
package com.doomonafireball.demo.android.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ListView;
/**
* User: derek Date: 12/7/13 Time: 2:37 PM
@derekbrameyer
derekbrameyer / InterceptingScrollView.java
Created June 2, 2014 13:25
InterceptingScrollView, an Android ScrollView to use with SlidingUpPanel.
package com.doomonafireball.demo.android.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;
/**
* User: derek Date: 12/7/13 Time: 2:37 PM
*
@derekbrameyer
derekbrameyer / attrs.xml
Created May 7, 2014 18:58
CircularProgressView attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="CircularProgressView">
<attr name="cpv__backgroundColor" format="color" />
<attr name="cpv__backgroundColorPressed" format="color" />
<attr name="cpv__animationTime" format="float" />
<attr name="cpv__insideRadius" format="dimension" />
<attr name="cpv__progressWidth" format="dimension" />
</declare-styleable>
</resources>
@derekbrameyer
derekbrameyer / CircularProgressView.java
Created May 7, 2014 18:57
CircularProgressView.java
package com.doomonafireball.samples.android.widget;
import com.doomonafireball.samples.android.R;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
@derekbrameyer
derekbrameyer / gist:ac0a8c5478ec099f9ee2
Created May 7, 2014 18:45
Creating a GIF from an MP4

Crop the video:

ffmpeg -i inputfile.mp4 -aspect 1:1 -r 18.84 -vf "crop=440:440:320:750" outputfile.mp4

Arguments:

  • -aspect (aspect ratio, required or error)
  • -r (framerate, required or error)
  • "crop=440:440:320:750" corresponds to width:height:topleftx:toplefty

Shorten the video:

@derekbrameyer
derekbrameyer / gist:9798253
Created March 27, 2014 01:46
Chipotle Order Names
  • GuacaFlockaFlame
  • #1 burrito of all time
  • Delicious but filling
  • Johann Sebastian Guac
  • E. Tataco
  • whichMat(t)Burrito
  • Humbug M'Grub
  • El Marrano
  • tyrone
  • Cincuenta / Cincuenta
@derekbrameyer
derekbrameyer / gist:8637286
Created January 26, 2014 18:38
1/26/14 We Kicked That Ball Press Release

Picking Up The Pieces

Late 10-run rally by Where My Pitches At seals 20-3 victory over We Kicked That Ball.

Charlottesville, VA -- We Kicked That Ball (WKTB) fell victim to the Where My Pitches At (WMPA) famous 8th man today in a staggering 20-3 loss at home. Hit early with a 9-2 deficit after the fifth inning, WKTB showed signs of life in the sixth and seventh before being inundated with a 10-run eight inning by WMPA. Team captain Derek Brameyer had little to say about the loss in the postgame presser: "We had a lot of people coming back from injuries today, and maybe we were a bit rusty. I know I made a lot of bone-headed plays myself. All I can say is we tried our hardest and we'll continue to do that."

WKTB falls to 2-2 on the season and appears to be struggling after shooting out of the gate with their first two victories. Perhaps WKTB is still finding the right rotation to get their offense going. Nevertheless, the team is moving forward with their heads held high. "It's tough to be th

@derekbrameyer
derekbrameyer / gist:8493056
Created January 18, 2014 16:50
1/18/14 We Kicked That Ball Press Release

BREAKING: Plagued by Injuries, We Kicked That Ball Turns to Prehodick

Charlottesville, VA -- We Kicked That Ball (WKTB) has temporarily signed third baseman Jesse Prehodick in order to field a legal team for this week's 12:00 game against Homey Don't Kick That. With five players out this week from their 11-person roster, WKTB was in danger of playing short-handed in a crucial early-season game. Prehodick's participation brings the team back up to a fieldable seven, though it's surely going to be a strenuous day for the team.

Fans wondering how WKTB's roster has so quickly been cut in half need only look at the recent injuries and illnesses that have hit the locker room. Coach Derek Brameyer was hobbled last game and will be resting a lower left leg injury; Trung Tran will be filling in for him. Third baseman and kicking powerhouse Woody Zantzinger III came down with spontaneous dental hydroplosion this past Tuesday. While not a particularly serious illness, team doctor Emily Parker was steadfast