Skip to content

Instantly share code, notes, and snippets.

@suau
suau / shareWithoutFacebook
Created April 7, 2015 11:04
share text to android applications except facebook
public static void shareWithoutFacebook(Context context, String text) {
// get available share intents
List<Intent> targets = new ArrayList<>();
Intent template = new Intent(Intent.ACTION_SEND);
template.setType("text/plain");
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

Instructions

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

@suau
suau / Android gradle project gitignore
Created September 21, 2014 12:17
A .gitignore file for gradle based android projects
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class