题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:
其他好文 时间:
2015-09-05 15:04:42
阅读次数:
148
【题目】Two Sum【描述】Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indice...
分类:
其他好文 时间:
2015-09-05 09:49:20
阅读次数:
158
Native appsare specific to a given mobile platform (iOS or Android) using the development tools and language that the respective platform supports (e....
分类:
移动开发 时间:
2015-09-02 15:58:07
阅读次数:
126
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:
其他好文 时间:
2015-09-02 10:45:33
阅读次数:
125
Question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of t...
分类:
其他好文 时间:
2015-09-01 12:21:29
阅读次数:
128
Avro简介
schema
文件组成
声明代码
测试代码
序列化与反序列化
specific
generic
参考文献Avro简介Avro是由Doug Cutting(Hadoop之父)创建的数据序列化系统,旨在解决Writeable类型的不足:缺乏语言的可移植性。为了支持跨语言,Avro的schema与语言的模式无关。有关Avro的更多特性请参看官方文档 1。Avro文件的读写是依据schema而...
分类:
其他好文 时间:
2015-08-31 10:13:05
阅读次数:
199
编辑~/.bashrc文件加入以下内容,定义别名
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cls='clear' #DOS下的清屏命令,也可以用Ctrl+L,简单快速
...
分类:
系统相关 时间:
2015-08-31 10:12:52
阅读次数:
153
用过android studio的对gradle应该都不陌生了,gradle文件的基本配置大同小异,略做了解使用应该是没什么问题了。但是深入细致的了解一下对于理解项目还是很有帮助的,尤其是遇到一些配置复杂的github项目,不了解gradle可能会遇到跑不起来又束手无策的情形。下面对gradle相关知识、用法做一下总结。DSL (domain specific language)即所谓领域专用语言,...
分类:
移动开发 时间:
2015-08-29 23:21:52
阅读次数:
268
.gitattributes文件中的一些配置可以为某些特定目录或者文件来设置,这样Git就仅仅对一个子目录或者文件子集来应用规则。这些path-specific配置被称为Git atttributes并且要么在你的project root目录中的.gitattributes文件来配置或者如果你不想把...
分类:
其他好文 时间:
2015-08-29 16:52:34
阅读次数:
190
有时候要利用view的tag进行传值,只需要传一个值时直接使用view.setTag(),如果多个值,就需要使用view.setTag(key,value);
key不能直接写入数字,不然会出现一下错误
java.lang.IllegalArgumentException: The key must be an application-specific resource id.
应该在sty...
分类:
移动开发 时间:
2015-08-28 13:34:44
阅读次数:
202