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
ERROR/AndroidRuntime(18114): FATAL EXCEPTION: AsyncTask #3
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
@derekbrameyer
derekbrameyer / gist:4253522
Created December 10, 2012 21:20
Zero to Android Deploy

1. Install Android SDKs

  • Navigate to http://developer.android.com/sdk/index.html#ExistingIDE
  • "Download the SDK Tools for Mac"
  • Copy the android-sdk-macosx directory to your Home directory.
  • Navigate to android-sdk-macosx/tools and execute android
  • You may need to allow Gatekeeper to install from anywhere
    • Settings --> Security & Privacy --> "Allow applications downloaded from: Anywhere"
  • When opening android, if you do not have a Java Runtime, OS X will download it for you (you'll have to relaunch android once the runtime is installed)
  • Check off the following packages:
    • Android SDK Platform-tools (Rev. 16)
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
super.onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount);
if (view.getChildAt(0) != null) {
View header = view.getChildAt(0).findViewById(R.id.header);
if (header != null && header.getVisibility() == View.VISIBLE) {
header.setVisibility(View.INVISIBLE);
}
@derekbrameyer
derekbrameyer / PagerSlidingTabStrip.java
Created June 17, 2013 23:24
Usage of tab background selector state and a ColorStateList for astuetz's PagerSlidingTabStrip
/*
* Copyright (C) 2013 Andreas Stuetz <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@derekbrameyer
derekbrameyer / gist:6891069
Last active December 25, 2015 00:49
Android .gitignore
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@derekbrameyer
derekbrameyer / gist:8359350
Last active January 2, 2016 20:49
1/8/14 We Kicked That Ball Press Release

We Kicked That Ball Opens Season With 4-1 Victory Over Rivals Here 4 Beer

*** FOR IMMEDIATE RELEASE ***

Charlottesville, VA -- Atop breakout performances by pitcher Blake Ware and first baseman Mike Silverman, We Kicked That Ball (WKTB) opened the Winter 2014 indoor kickball season with a 4-1 win playing away at conference rivals Here 4 Beer. The team is thrilled with their victory and looking forward to their next game against out-of-conference foe C'Ville Brunch Ballers, this Sunday at 12:00 PM. WKTB moves to an undefeated 1-0 on the season with a 100% win rate and no losses, and notches a crucial victory in conference play.

WKTB opened the game with three runs in the first inning, quickly quieting the 5-person crowd, and never looked back. Their defense was dominant throughout, allowing just one run and handing Here 4 Beer a smattering of quick three-out innings. Infield defense had an especially standout performance, with the front three of pitcher Blake Ware, first baseman Mike Silverman

@derekbrameyer
derekbrameyer / gist:8390664
Created January 12, 2014 21:10
1/12/14 We Kicked That Ball Press Release

We Kicked That Ball Blanks C'ville Brunch Ballers in 12-0 Victory

*** FOR IMMEDIATE RELEASE ***

Charlottesville, VA -- Nine different players scored runs in today's 12-0 shutout by We Kicked That Ball (WKTB) against the visiting C'ville Brunch Ballers (CBB). The team moves to an undefeated 2-0 on the season, with no losses, a 100% win rate, zero ties, no dropped games,and two victories. "Total team effort," said relief pitcher Blake Ware following the game. "We had a lot of people out there making plays today." First baseman Mike Silverman echoed Ware's sentiments: "A lot of good chemistry today. Kayla [Leavesley] especially."

WKTB's offense today was varied, mixing in several key bunts to advance runners into scoring position. Catcher/second baseman/right fielder Kayla Leavesley opened scoring in the first inning and outfielder Trung Tran followed. Leavesley's performance today should pay big dividends for fantasy indoor kickball owners who picked her up following last week's advice. Tra

@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

@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: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