Skip to content

Instantly share code, notes, and snippets.

View treesouth's full-sized avatar

zhounan treesouth

  • Home
  • Zhengzhou
View GitHub Profile
@treesouth
treesouth / ListDeleteItem.java
Created February 25, 2015 03:08
ArrayList删除特定元素
Iterator<Integer> iterator = list.iterator();
while(iterator.hasNext()){
int i = iterator.next();
if(i == 1){
iterator.remove();
}
}
@treesouth
treesouth / get_all_app_info.java
Created February 14, 2015 07:44
android获取系统内所有app的信息
import java.util.ArrayList;  
import java.util.Collections;  
import java.util.List;  
  
import android.content.Context;  
import android.content.pm.ApplicationInfo;  
import android.content.pm.PackageManager;  
import android.util.Log;  
  
  
@treesouth
treesouth / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console