自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

仰望星空,脚踏实地。

Stay Foolish !Stay hungry !

  • 博客(16)
  • 资源 (3)
  • 收藏
  • 关注

原创 [IOS] Class Memory Analysis

memory analysis Each object has a isa pointer which point to it’s class , so each object can get the same method from the class .

2015-07-31 21:40:22 312

原创 [Swift] function pointer(address) as the parameter of function

1 return func pointer(address)func getFuncPointer()->(Int->Int){ func add(num:Int)->Int{ return num+1; } return add;}var f = getFuncPointer();println(f(100)) 2 function point

2015-07-29 20:20:27 448

原创 [Android] How to import library into android studio

Project Structure configA this project will use the libraryB is SlidingMenu ‘s build.grade filenotice:android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { mi

2015-07-24 22:44:23 596

转载 [Android] How to use github with android studio

For this tutorial, the project will be connected to Github.The meaning of this post is to give you a quick start to get you up and running.Using Version Control (VCS)Android Studio can work with the fo

2015-07-21 22:22:44 501

原创 【Android】child thread refresh UI

Message Queue Mechanismpublic class MainActivity extends Activity { static ImageView iv; static MainActivity ma; static Handler handler = new Handler(){ //此方法在主线程中调用,可以用来刷新ui

2015-07-20 13:27:01 627

原创 [LeetCode] 4 Median of Two Sorted Arrays

package pack4;import java.util.Arrays;public class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { int len = nums1.length + nums2.length; if(len%

2015-07-12 20:14:42 292

原创 [LeetCode] 4 Find the kth smallest element in two sorted array

Find the kth smallest element in two sorted arraypublic int kthSmallestElem(int[] num1,int[] num2,int k){ /* * 1) num1 length = 0 , num2 length > 0 * 2) num2 length = 0 , num

2015-07-12 20:03:12 919

原创 【Java】Java reflection

一 what is java class file(eg : demo.class)A Java class file is a file (with the .class filename extension) containing Java bytecode that can be executed on the Java Virtual Machine (JVM). A Java class

2015-07-11 16:18:53 458

原创 【LeetCode】3 Longest Substring Without Repeating Characters

Solution1public class Solution { public int lengthOfLongestSubstring(String s) { boolean []exist = new boolean[256]; int i=0,maxLen = 0; for(int j=0;j<s.length();j++)

2015-07-07 22:38:36 371

转载 【BigData】100 open source Big Data architecture papers for data professionals

Big Data technology has been extremely disruptive with open source playing a dominant role in shaping its evolution. While on one hand it has been disruptive, on the other it has led to a complex ecos

2015-07-07 20:15:11 1015

原创 【Android】Environment variable does not point to a valid JVM instalation

To solve this, add the JAVA_HOME variable in Users variables instead of System variables.Install 64 bit JDK and JRE if you have a 64-bit computer and set the JAVA_HOME variable like in the picture注意环境变

2015-07-05 19:36:53 521

原创 【java】单例模式涉及的多线程问题

懒汉式,安全class Single{ private static final Single s = new Single(); private Single(){} public static Single getInstance() { return s; }} 饿汉式,不安全,要加同步代码块或同步函数,class Singl

2015-07-05 18:40:55 328

原创 【LeetCode】2 Add Two Numbers

/** * You are given two linked lists representing two non-negative numbers. The * digits are stored in reverse order and each of their nodes contain a single * digit. Add the two numbers and return

2015-07-05 12:21:23 393

原创 【java】Collection-API

todo—

2015-07-04 15:59:55 375

原创 【linux】Vmware中安装ubuntu无法通过NAT上网

比较弱智的方法:关闭虚拟机后,打开主界面里的 编辑(Edit)——编辑网络参数,在最左下角有一个“恢复默认”,点击后让其重新分配子网IP地址,完毕后重新打开安装的XP或Linux就行了

2015-07-04 14:02:35 367

原创 【LeetCode】1 Two Sum

HashMap/** * Given an array of integers, find two numbers such that they add up to a * specific target number. * <p> * The function twoSum should return indices of the two numbers such that they

2015-07-02 14:21:52 294

Reactive Extensions for javascript

rxjs Reactive Extensions for javascript Reactive Extensions for javascript

2017-12-04

空空如也

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

TA关注的人

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