码迷,mamicode.com
首页 >  
搜索关键字:spa    ( 737个结果
LeetCode --- 73. Set Matrix Zeroes
题目链接:Set Matrix Zeroes Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forward solution using O(mn) spa...
分类:其他好文   时间:2015-03-20 22:00:08    阅读次数:135
leetcode 题解 || Swap Nodes in Pairs 问题
problem: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant spa...
分类:其他好文   时间:2015-03-20 18:37:47    阅读次数:123
RefBase, sp和wp (2)
1. 通过wp创建sp的例子, 如: int main() { A* pA = new A(); wp wpA(pA); // 弱引用计数为1, 强引用计数为初始值0x1000000. sp spA = wpA.promote(); // 通过promote()得到一个sp. }2. promote...
分类:其他好文   时间:2015-03-14 15:03:42    阅读次数:129
SPA examples
http://webdesignledger.com/inspiration/40-excellent-examples-of-single-page-websiteshttps://onepagelove.com/http://www.awwwards.com/websites/single-pa...
分类:其他好文   时间:2015-03-12 00:47:05    阅读次数:161
SPA学习之 - 路由插件(crossroads.js)
Crossroads.js是一个受Rails, Pyramid, Django, CakePHP等基于路由/分发(Route/Dispatch)方式处理路由的后端MVC框架启发的一套js专业路由库。它能够直接解析传入的字符串并根据相应的规则来过滤和验证路由,然后再执行下一步的操作。A duck ca...
分类:Web程序   时间:2015-03-11 21:07:01    阅读次数:12772
First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant spa...
分类:其他好文   时间:2015-03-10 10:26:23    阅读次数:136
启动服务成功后OK对齐显示(函数调用)
#屏幕的大小 SCREEN=`stty-F/dev/consolesize`2>/dev/null#默认显示的是横排为25竖排为80 COLUMNS=${SCREEN#*} [-z$COLUMNS]&&COLUMNS=80#当不存在/dev/console文件时候,直接设置COLUMNS为80 SPA_COL=$[$COLUMNS-14]#总长度-尾部显示字符的大小(由于显示为[OK]或..
分类:其他好文   时间:2015-03-05 19:38:39    阅读次数:179
AngularUI Router 概要【转】
通过AngularJS来创建SPA(single page application),要想让页面导航看起来跟一般Web页面一样的话,路由相当重要。AngularUI Router是AngularUI 团队开发的一个AngularJS路由模块,相比AngularJS的标准路由ngRoute,它更灵活,...
分类:其他好文   时间:2015-03-05 14:13:42    阅读次数:204
链接不能继承color的原因
以下均为个人见解,如有错误之处,请大牛帮忙更正。--------------------------------------- 文字 链接 起因是因为上面的代码,非常简单,但是问题出现了,链接不能继承父级div的color属性,spa...
分类:其他好文   时间:2015-02-26 01:19:49    阅读次数:134
1014. Waiting in Line (30)
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are: The spa...
分类:其他好文   时间:2015-02-25 21:11:01    阅读次数:177
737条   上一页 1 ... 66 67 68 69 70 ... 74 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!