自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (14)
  • 收藏
  • 关注

原创 leecode 10 Regular Expression Matching

package com.xiayu.maching;public class main {    /**     * @param args     */    public static void main(String[] args) {        // TODO Auto-generated method stub        boolean r

2015-04-27 18:01:00 418

原创 leecode 7 Reverse Integer

public class Solution { public static int reverse(int x) {     int x_cp;     if(x         x_cp = -x;     }else{         x_cp = x;     }       long result = 0;     while(x_cp !=0

2015-04-23 15:44:03 467

原创 leecode 6

public static String convert(String s, int nRows) {    StringBuffer newstring = new StringBuffer();    if((nRows == 1) || (s.length()     for(int i = 0 ; i         newstring.append(s.cha

2015-04-23 14:43:13 462

原创 leecode 3

public class Solution {    public int lengthOfLongestSubstring(String s) {        if (s == null || s.length() == 0) {            return 0;        }                HashSet set = new HashSet

2015-04-20 17:53:23 676

原创 leecode 2

package xiayu;public class add { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub ListNode l1 = new ListNode(0);

2015-04-17 17:17:35 510

原创 leecode 1

package sum;import java.util.ArrayList;class sumall { private ArrayList mNumber1 = new ArrayList(); //和target符号相同,但是比target更接近零 private ArrayList mNumber2 = new ArrayList();//和target符号相同,比tar

2015-04-17 00:45:59 474

原创 python 用于git的脚本

'''Readmepython commitmessage.py 19.3.A.0.12 19.3.A.0.13oldtag:19.3.A.0.12 newtag:19.3.A.0.13'''import osimport os.pathimport stringimport sysimport commandsclass ParseCommit: d

2015-04-15 17:56:39 4277

原创 检查一个ttf文件是否支持一个给定unicode. python写的

import fontforgeimport osimport os.pathrootdir = "."for parent,dirnames,filenames in os.walk(rootdir):    for filename in filenames:        print "filename is:" + filename       

2015-04-09 14:28:44 3252 1

native service例子

smack.tar 是一个native server 的例子 native_service.tar 是一个apk,验证native server。 http://blog.csdn.net/xiayu98020214/article/details/8895567

2014-02-24

anndroid 动态库 堆栈信息

android 动态库 堆栈信息解析工具

2013-11-23

动态库 堆栈信息

android so 中的堆栈可以打出来,但是看不见符号名称,注意要用有符号的so。例如 D/ ( 1104): #00 pc 00020166 /system/lib/libhwui.so (deleted) D/ ( 1104): #01 pc 00016586 /system/lib/libhwui.so (deleted) D/ ( 1104): #02 pc 00013e46 /system/lib/libhwui.so (deleted) 使用本工具可以看到名称。 python analyze_stack.py log 1:使用前修改 ANDROID_PRODUCT_NAME 2: 在源码目录中,执行。

2013-11-21

android widget 计算你还能活多长时间

参照源码中media widget,写的,用到了widget broadcastreceiver startd server SharedPreferences

2013-10-14

android widget

android widget 小应用。用到了intent ,broadcastreceiver,日期控件。

2013-10-10

surfaceflinger dump

surfaceflinger dump的调用过程。在linux下,用dia画的图。

2013-06-15

android 自定义系统服务 例子

http://blog.csdn.net/xiayu98020214/article/details/8850430,是配合博客的android4.04patch ,还有添加的文件,还有测试apk

2013-04-26

android 自定义 系统服务例子 patch

http://blog.csdn.net/xiayu98020214/article/details/8850430,我的博客的patch,不包括添加的文件,只是修改的patch

2013-04-26

自定义打log,方便取消log

自定义打log(printf),方便取消log.

2013-04-25

python获取firefox网站视频缓存

在fedore环境下,获取firefox的sohu视频缓存。用法:要先清理Cache.其他的看源码就很清楚了。导出数据放在/tmp/friend/下,按数字取名。

2013-04-25

vba编写的cad批量打印成pdf

自己编的vba程序,可以批量打印成pdf。有源码

2013-04-24

包外调用本地服务

和我的包内调用本地服务是一起的。这个包中会调用包外的本地服务。

2013-04-24

android 本地服务 例子

android 包内调用本地服务。外加activity生命周期,打的log。

2013-04-24

android 本地服务 代码例子

android 本地服务(local service)使用intent启动服务。外加activity的生命周期的log

2013-04-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除