Skip to content

Instantly share code, notes, and snippets.

Thinking hard

Matt McKenna matthewcmckenna

Thinking hard
  • Comcast | Xfinity Stream
  • Philadelphia, PA
Block or report user

Report or block matthewcmckenna

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am matthewcmckenna on github.
  • I am mattmck ( on keybase.
  • I have a public key ASBSUPeXRxGTrcK8V61EIuOniQLOwUghjngM4SEGLYOKjQo

To claim this, I am signing this object:

matthewcmckenna / cast_ic_notification_small_icon.xml
Last active Oct 20, 2016
How to change Chromecast SDK v3 Notification Icon: Use this file in your /drawable folder
View cast_ic_notification_small_icon.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android=""
android:src="@drawable/ic_your_notification_icon" />
<!-- Default Cast v3 notification icon -->
<!-- android:src="@drawable/quantum_ic_cast_connected_white_24" -->
matthewcmckenna / build.gradle
Created Oct 6, 2016
split apk exception fix
View build.gradle
splits {
abi {
enable true
include 'armeabi', 'x86'
universalApk false
View bash_profile
# -------
# Aliases
# -------
alias ll="ls -al"
alias la="ls -a"
alias ldir="ls -al | grep ^d"
alias ip="curl"
matthewcmckenna / hide-desktop-icons
Created Apr 28, 2016
Hide's the desktop icons on Ubuntu using 'gsettings'
View hide-desktop-icons
gsettings set org.gnome.desktop.background show-desktop-icons false
matthewcmckenna /
Last active Feb 4, 2016
Good onBackPressed() behavior closing the navigation drawer when it is open and going back when it is not.
public void onBackPressed() {
DrawerLayout drawer = (DrawerLayout) findViewById(;
if (drawer.isDrawerOpen(GravityCompat.START)) {
// If the drawer is open close the drawer
} else {
// Otherwise do the back pressed operation
View gist:c3cfde5399ea4ee99bb1
var textToReplace = "Original";
var replacementText = "Replaced";
document.body.innerHTML = document.body.innerHTML.replace(new RegExp(textToReplace, "gi"), replacementText);
// "gi" in the RegExp is to make the replacement global and case insensitive
matthewcmckenna / build.gradle
Created Dec 9, 2014
Fix: Gradle DSL method not found: 'runProguard()'
View build.gradle
apply plugin: ''
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId ""
minSdkVersion 16
targetSdkVersion 21
matthewcmckenna / lollipop-actionbar-style
Created Nov 16, 2014
A Gist to remember the four color attributes for the Lollipop action bar / navigation bar
View lollipop-actionbar-style
<?xml version="1.0" encoding="utf-8"?>
<style name="AppTheme" parent="android:Theme.Material">
<!--Cannot be transparent-->
<item name="android:colorPrimary">@color/colorPrimary</item>
<!--Can be transparent-->
<item name="android:colorPrimaryDark">@color/colorPrimaryDark</item>
matthewcmckenna / color.xml
Created Oct 4, 2014
Android Material Design Color Resources
View color.xml
<?xml version="1.0" encoding="utf-8"?>
<color name="red_50">#fde0dc</color>
<color name="red_100">#f9bdbb</color>
<color name="red_200">#f69988</color>
<color name="red_300">#f36c60</color>
<color name="red_400">#e84e40</color>
<color name="red_500">#e51c23</color>
<color name="red_600">#dd191d</color>
<color name="red_700">#d01716</color>
You can’t perform that action at this time.