Skip to content

Instantly share code, notes, and snippets.

Tyler McCraw TylerMcCraw

Block or report user

Report or block TylerMcCraw

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
@nickbutcher
nickbutcher / IconView.kt
Last active Jul 17, 2019
A prototype implementation of a shadow effect inspired by the Google Play Games app (https://play.google.com/store/apps/details?id=com.google.android.play.games).
View IconView.kt
/*
* Copyright 2017 Google Inc.
*
* 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 distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@athornz
athornz / androidmanifest.xml
Created May 3, 2017
Prevent TouchWiz from surrounding your app icon in a frame
View androidmanifest.xml
<!-- Prevents TouchWiz from surrounding your app icon in a frame -->
<!-- Add to your manifest inside the application tag -->
<meta-data
android:name="com.samsung.android.icon_container.has_icon_container"
android:value="true"/>
@adavis
adavis / AppComponent.java
Last active Mar 2, 2019
Background Jobs with Android Job and Dagger
View AppComponent.java
@Singleton
@Component(
modules = {
AppModule.class, JobsModule.class
}
)
public interface AppComponent
{
Application getApplication ();
@Mariovc
Mariovc / ImagePicker.java
Last active Jul 4, 2019
Utility for picking an image from Gallery/Camera with Android Intents
View ImagePicker.java
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
@tuananh
tuananh / archive.html
Created Nov 12, 2013
Group posts by month in Jekyll archive page
View archive.html
---
layout: default
title: Archive
---
<div class="post">
<h2>Archive</h2>
<ul>
{% for post in site.posts %}
{% unless post.next %}
@zachleat
zachleat / reading_time.rb
Last active Nov 9, 2018
Read this in X minutes Liquid Filter Plugin (for Jekyll)
View reading_time.rb
# Outputs the reading time
# Read this in “about 4 minutes”
# Put into your _plugins dir in your Jekyll site
# Usage: Read this in about {{ page.content | reading_time }}
module ReadingTimeFilter
def reading_time( input )
words_per_minute = 180
You can’t perform that action at this time.