Skip to content

Instantly share code, notes, and snippets.

View wheam's full-sized avatar

wheam wheam

View GitHub Profile
{"actors":["刘书卫"],"alias":[],"categories":[],"commentsCount":null,"cover":{"l":"http://img.wdjimg.com/image/video/0c0f91873e19a5590bd3e65703d61f87_360_540.jpeg","s":"http://img.wdjimg.com/image/video/0c0f91873e19a5590bd3e65703d61f87_180_270.jpeg"},"createdDate":1409567652000,"description":"一只受伤的小黄鼠狼,被热情的小动物们收留。","directors":["刘书卫"],"downloadCount":0,"dubbings":[],"emax":1,"estart":0,"estimatedNextReleaseDate":null,"estimatedReleaseDates":[],"id":360979,"itemStatus":1,"language":"国语","lastEditTime":null,"latestEpisodeDate":null,"latestEpisodeNum":1,"marketComments":null,"marketRatings":[{"providerAlias":"sohu","providerName":"搜狐视频","rating":5.0}],"noDownloadUrls":false,"noPlayInfos":false,"noPrivateDownloadUrls":false,"pictures":{"l":["http://img.wdjimg.com/image/video/c7cf36d5fc842e16d248ed527622a4fe_600_450.jpeg","http://img.wdjimg.com/image/video/a0c47d31e98d043afcc31990ea22ede1_240_180.jpeg"],"m":["http://img.wdjimg.com/image/video/c7cf36d5fc842e16d248ed527622a4fe_1024_768.jpeg","http://img.wdjimg.com/imag
package in.mobilelin.smartbar;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.app.ActionBar;
import android.support.v4.app.FragmentActivity;
public class SmartBarUtils {
@wheam
wheam / gist:5063824
Last active December 14, 2015 09:18
归并排序
int MergeCombin(int a[],int first, int middle , int last ,int temp[])
{
int i=first,j=middle+1,m=middle,n=last;
int k=0;
while(i<=m&&j<=n)
{
if(a[i]<a[j])
temp[k++]=a[i++];
else
temp[k++]=a[j++];
@wheam
wheam / gist:5037219
Last active December 14, 2015 05:40
插入排序
int InsertSort(int data[])
{
int temp,j;
for(int i=0;i<10;i++)
{
//把当前下标的数给temp
temp=data[i];
//把当前下标给另外一个计数器j
j=i-1;
//当i之前的数比i大的时候,就依次向后挪位,留空给temp存储的数
@wheam
wheam / gist:5028431
Created February 25, 2013 08:07
java多线程生产者消费者代码
import java.util.LinkedList;
import java.util.Stack;
/*
* Email:wheam.me@gmail.com
* 程序说明:java多线程生产者消费者问题,采用wait&&notify方法,参考了部分博客
* */
public class Sycn {
//设置一个list作为数据缓冲区
private LinkedList<String> list = new LinkedList<String>();
@wheam
wheam / gist:4673076
Last active December 11, 2015 22:58
TimerCounter
package com.time;
import java.util.Timer;
import java.util.TimerTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;
import android.view.Menu;
@wheam
wheam / mapred-site.xml
Last active December 10, 2015 14:39
hadoop配置文件mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
<property>
<name>mapred.local.dir</name>
@wheam
wheam / hdfs-site.xml
Created January 4, 2013 02:21
hadoop配置文件hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.name.dir</name>
@wheam
wheam / core-site.xml
Created January 4, 2013 02:17
hadoop配置文件core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000/</value>
</property>
<property>