//--------兼容版本的平滑滚动效果 //-------------使用百分比减值达到平滑的效果,使用body.scrollTop||documentElement.scrollTop检测浏览器内核,使用bySys检测用户的滚动行为 1 2 3 4 5 smoothScroll 6 ...
分类:
其他好文 时间:
2014-11-26 01:09:58
阅读次数:
278
目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods,在项目中导入AFNetworking类库场景2:如何正确编译运行一个包含CocoPods类库的项目CocoaPods是什么?当你开发iOS应用时,会经常使用到很多第三方开源类库...
分类:
其他好文 时间:
2014-11-26 01:08:30
阅读次数:
264
这个题目很简单,给一个字符串,然后返回最后一个单词的长度就行。题目如下: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last...
分类:
其他好文 时间:
2014-11-26 01:07:58
阅读次数:
218
read#include int read(int fd, void *buf, int nbyte);函数说明:read()会把参数fd所指的文件传送nbyte个字节到buf指针所指的内存中。write#includessize_twrite (int fd,const void * buf,si...
分类:
其他好文 时间:
2014-11-26 01:07:37
阅读次数:
207
Youth is not a time of life; it is a state of mind; it is not a matter of rosy cheeks, red lips and supple knees; it is a matter of the will, a qualit...
分类:
其他好文 时间:
2014-11-26 01:09:06
阅读次数:
213
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.参考:http://www.cnblogs.com/AnnieKim/ar...
分类:
其他好文 时间:
2014-11-26 01:08:54
阅读次数:
190
1 操作符表达式由操作数和操作符组成2 算术表达式+ - * / %3 自增和自减表达式++ --4 位运算表达式对数据按二进制位进行运算&与、|或、^异或 `取补 >右移5 赋值表达式= += -= *= /= %= &= |= ^= >=6 关系表达式== != = is7 条件逻辑表达式&&....
分类:
其他好文 时间:
2014-11-26 01:06:33
阅读次数:
230
背景最近由于工作需要,再次接触到了Fusioncharts,但也有不足之处,现在官网上似乎是不支持flash的版本了,只能看到html5相关的javascript版本,无奈再次从网上搜索到了一些别人个人总结的一些用法。总结fusioncharts的flash版本的xml渲染数据结构常有element...
分类:
其他好文 时间:
2014-11-26 01:07:15
阅读次数:
336
题意:有司机,下午路线,晚上路线各n个。给每个司机恰好分配一个下午路线和晚上路线。给出行驶每条路线的时间,如果司机开车时间超过d,则要付加班费d×r。问如何分配路线才能使加班费最少。分析:感觉上是要先排序,然后时间最长的路线配另一个时间最短的路线。这里就严格证明一下这样贪心的正确性。以两条路线为例,...
分类:
其他好文 时间:
2014-11-26 01:07:44
阅读次数:
201
https://github.com/telly/FloatingActionhttp://www.csdn.net/article/2014-11-21/2822753-material-design-libs/1android属性动画的开源代码:http://www.jcodecraeer.co...
分类:
其他好文 时间:
2014-11-26 01:07:12
阅读次数:
189
1.贝叶斯公式每次提到贝叶斯这三个字,心中的仰慕之情油然而生。感觉贝叶斯推断是众多机器学习算法的基础(尤其是统计学习)。一个很简单的公式应用到非常复杂和广泛的领域,真是一件了不起的事情。再讲贝叶斯公式之前,首先回顾一下概率的知识。若 A、B 是两个事件,我们用P(A)表示事件A发生的概率,P(B)表...
分类:
其他好文 时间:
2014-11-26 01:04:44
阅读次数:
321
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 ...
分类:
其他好文 时间:
2014-11-26 01:05:29
阅读次数:
166
这一篇文章,我将图文并茂地介绍Socket编程的基础知识,我相信,如果你按照步骤做完实验,一定可以对Socket编程有更好地理解。本文源代码,可以通过这里下载http://files.cnblogs.com/chenxizhang/SocketWorkshop.rar第一步:创建解决方案第二步:创建...
分类:
其他好文 时间:
2014-11-26 01:05:23
阅读次数:
324
接触bootstrap也半年有余,从一开始不知道如何使用,到知道其各个模块的具体功能,再到提炼哪些使用的比较多,再此又体会到bootstrap源码的精髓,通过oocss写的类使其感觉更有易用性,开始本想对其各个板块,按钮进行逐一分析,总结出属于自己的一套css代码(自己也有属于自己的库,对各个组件....
分类:
其他好文 时间:
2014-11-26 01:03:51
阅读次数:
221
创建Animal对象11View Code创建Person对象,继承Animal11View Code删除Person的tail属性11View Code重置constructor11View Code对象冒充11View Code静态属性, undefined是正常的。11View Code11V...
分类:
其他好文 时间:
2014-11-26 01:03:08
阅读次数:
336
#include #include #include #include #include using namespace std;int main() { int N, M; scanf("%d%d", &N, &M); vector nums(N); vector ...
分类:
其他好文 时间:
2014-11-26 01:03:04
阅读次数:
243
---恢复内容开始---先看效果:口袋通能不用用秀米编辑文章?浏览器:必须使用Chrome;严格按照步骤操作第一步:打开秀米编辑文章,复制内容秀米:http://xiumi.us/编辑好了,点击右上角的 对号,不点击复制无效的。第二步:打开百度编辑器百度编辑器:http://ueditor.baid...
分类:
其他好文 时间:
2014-11-26 01:02:15
阅读次数:
327