Skip to content

Instantly share code, notes, and snippets.

Android snagging list

  • Empty placeholder for profiles (following generic + empty posts)
  • Icons for About / Log In (We can either use our icons or just plain text)
  • Create post CTA (at least updated headline)
  • post description rich edit color (white to black)
  • Instagram import - import video - back button?
  • Products with HTML in their description
  • Flag post / delete post / delete comment / edit comment
  • create post remove insta likes / search on insta (until we figure out T&C's)
@imallan
imallan / giffify.sh
Last active August 29, 2015 14:24 — forked from rock3r/giffify.py
#!/bin/sh
# License for any modification to the original (linked below):
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# Sebastiano Poggi wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return.
# ----------------------------------------------------------------------------
#
# Based upon http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
@imallan
imallan / VideoViewLeakFix.java
Last active August 29, 2015 14:21
Using Java reflection to change the Context of the AudioManager to ApplicationContext, so VideoView can be GCed properly.
@Override
protected void onDestroy() {
super.onDestroy();
//Here fix a leak when VideoView holds context
// because AudioManager didn't release audio focus properly.
if (mVideoView != null) {
AudioManager am = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
try {
Field f = am.getClass().getDeclaredField("mContext");
f.setAccessible(true);
public static class TabListener<T extends Fragment> implements ActionBar.TabListener {
private Fragment mFragment;
private final Activity mActivity;
private final String mTag;
private final Class<T> mClass;
/** Constructor used each time a new tab is created.
* @param activity The host Activity, used to instantiate the fragment
* @param tag The identifier tag for the fragment
* @param clz The fragment's Class, used to instantiate the fragment