fileManager的基本应用:查看列表NSArray *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory,NSSearchPathDomainMask domainMask,BOOL expandTilde);...
分类:
其他好文 时间:
2015-01-13 14:17:48
阅读次数:
123
https://oj.leetcode.com/problems/single-number/Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your al...
分类:
其他好文 时间:
2015-01-13 14:16:55
阅读次数:
141
注册,下载git 软件。然后,浏览你的主页面。看看上面的按钮都是做什么的然后在你的 主页面上创建个 仓库 (create repository).创建好后,新窗口里会有一个 Clone 地址 xxxx, 在本地找一个文件夹,在里面用命令行输入’git clone xxxx‘, 你的仓库就能在本地同步...
分类:
其他好文 时间:
2015-01-13 14:17:27
阅读次数:
129
https://oj.leetcode.com/problems/excel-sheet-column-number/Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet...
分类:
其他好文 时间:
2015-01-13 14:16:34
阅读次数:
141
前言:因为Object-C是不支持多继承的,所以很多时候都是用Protocol(协议)来代替。Protocol(协议)只能定义公用的一套接口,但不能提供具体的实现方法。也就是说,它只告诉你要做什么,但具体怎么做,它不关心。当一个类要使用某一个Protocol(协议)时,都必须要遵守协议。比如有些必要...
分类:
其他好文 时间:
2015-01-13 14:16:41
阅读次数:
157
SVD分解SVD分解是LSA的数学基础,本文是我的LSA学习笔记的一部分,之所以单独拿出来,是由于SVD能够说是LSA的基础,要理解LSA必须了解SVD,因此将LSA笔记的SVD一节单独作为一篇文章。本节讨论SVD分解相关数学问题,一个分为3个部分,第一部分讨论线性代数中的一些基础知识,第二部分讨论...
分类:
其他好文 时间:
2015-01-13 14:16:41
阅读次数:
160
有个容器要上下左右留点空间,稍稍留点就行,于是选择了margin属性。随手写了:margin:5%一跑起来, 整个界面是乱七八糟。仔细一查,margin的定义里写着:Arelative to thewidthof the containing block. Negative values are a...
分类:
其他好文 时间:
2015-01-13 14:16:41
阅读次数:
232
https://oj.leetcode.com/problems/same-tree/Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered ...
分类:
其他好文 时间:
2015-01-13 14:14:55
阅读次数:
125
https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes alo...
分类:
其他好文 时间:
2015-01-13 14:13:55
阅读次数:
105
Flex组件自定义滚动条的实现.scrollBar{ downArrowUpSkin:Embed(source="img/mainLeftScrollBar/bar_bottom.png"); downArrowOverSkin:Embed(source="img/mainLeftScrollBar...
分类:
其他好文 时间:
2015-01-13 14:14:23
阅读次数:
162
转自http://my.oschina.net/u/1449160/blog/2607641.安装ruby1.1yum安装,版本旧#yuminstallrubyruby-develruby-riruby-rdocruby-irbruby-shadow1.2删除#yumremoverubyruby-d...
分类:
其他好文 时间:
2015-01-13 14:14:01
阅读次数:
181
mybatis generator自动生成的代码里老是有一堆example,虽然说他封装的东西比较多,但是大部分时候并不会用到。如果需要改的时候,在接口和mapper里修改便是了。配置的方法如下:
分类:
其他好文 时间:
2015-01-13 14:15:40
阅读次数:
141
目标读者:了解 Git 的基本概念,能够使用 Git 进行基本的本地和远程操作。有关 Git 的基础知识可以参见知乎回答-怎样使用 GitHub?,天猪(刘勇)给出了一些很好的学习资料。本文介绍了小团队中 Git 管理的基本使用流程。小团队的代码管理可以采用这样一种方式:项目存在一个中心远程仓库,作...
分类:
其他好文 时间:
2015-01-13 14:15:19
阅读次数:
141
输出以下代码结果:#include int main() { printf("%f\n", 5); printf("%d\n", 5.01); return 0;}结果:0.0000001889785610析:1)5是int型,%f 要接收的参数是 double型,结果5 由4个字...
分类:
其他好文 时间:
2015-01-13 14:13:40
阅读次数:
128
//打开一张图片#include"cv.h"#include"cxcore.h"#include"highgui.h"int main(int argc,char*argv[]){ //声明IplImage指针 IplImage*pImg; //载入图片 pImg=cvLoa...
分类:
其他好文 时间:
2015-01-13 14:13:44
阅读次数:
167
Why is it important to set goals ? Because goal can help you do , be , and experience anything you want in life . instead of just letting life happe.....
分类:
其他好文 时间:
2015-01-13 14:12:20
阅读次数:
109
https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/Say you have an array for which theithelement is the price of a given stock on day...
分类:
其他好文 时间:
2015-01-13 14:14:12
阅读次数:
100