Skip to content

Instantly share code, notes, and snippets.

@andrewgiang
andrewgiang / Instructions.md
Last active August 29, 2015 14:01
Convert Video to GIF and Upload to Imgur
  1. Install FFmpeg using Homebrew
  • brew install ffmpeg
  1. Install imguru
  1. Add alias command to .bash_profile
  • Copy and paste below code to your ~/.bash_profile
#create a gif from a video file and upload to imgur
create_gif(){
@andrewgiang
andrewgiang / IconCopier.py
Created November 27, 2013 15:18
Small Android Icon Copier
from os import listdir, makedirs
from os.path import dirname, basename, join, normpath, exists
from shutil import copyfile
import tkMessageBox
import Tkinter, tkFileDialog
DPI_DIR = ["hdpi", "mdpi", "xhdpi", "xxhdpi", "ldpi"]
DEFAULT_ICON_DIR = "H:\Andrew\Android\Android Resources\assets"
DEFAULT_ANDROID_PROJECTS = "H:\Users\Andrew\Android"
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;