Skip to content

Instantly share code, notes, and snippets.


Moyang Wang googolmo

View GitHub Profile
public class ResizeAnimation extends Animation {
final int startWidth;
final int targetWidth;
View view;
public ResizeAnimation(View view, int targetWidth) {
this.view = view;
this.targetWidth = targetWidth;
startWidth = view.getWidth();
* Copyright 2014 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
* Unless required by applicable law or agreed to in writing, software
googolmo / index.php
Created Jan 30, 2012 — forked from rpetrich/index.php
Twitter self-hosted image service/url shortener
View index.php
// Twitter self-hosted image service/url shortener by Ryan Petrich
// Installation:
// 1. Paste this script into the top of your HTTP root's index.php (rename index.html to index.php if it doesn't exist)
// 2. Add the following to your HTTP root's .htaccess file (create .htaccess if it doesn't exist):
// ErrorDocument 404 /index.php
// 3. Create a "s" subfolder and give it 777 permissions
// 4. Add the following as the custom URL for URL shortening in Twitter for iPhone's settings:
// 5. Add the following as the custom URL for Image service:
googolmo / sdcard
Created Sep 16, 2011
Installing Android apps to the SD card
View sdcard
<android xmlns:android="">
<manifest android:installLocation="preferExternal">
<uses-sdk android:minSdkVersion="7" />