Skip to content

Instantly share code, notes, and snippets.

Su-Au Hwang suau

Block or report user

Report or block suau

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
suau / shareWithoutFacebook
Created Apr 7, 2015
share text to android applications except facebook
View shareWithoutFacebook
public static void shareWithoutFacebook(Context context, String text) {
// get available share intents
List<Intent> targets = new ArrayList<>();
Intent template = new Intent(Intent.ACTION_SEND);
List<ResolveInfo> resolveInfos = context.getPackageManager().
queryIntentActivities(template, 0);
// remove facebook which has a broken share intent
for (ResolveInfo resolveInfo : resolveInfos) {

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

suau / Android gradle project gitignore
Created Sep 21, 2014
A .gitignore file for gradle based android projects
View Android gradle project gitignore
# built application files
# files for the dex VM
# Java class files
You can’t perform that action at this time.