In order to install it on your pi follow the steps: 1. Install subversion: sudo?apt-get update sudo?apt-get install subversion 2.?Go to the folder where you want to have the mjpg-stremer, for e...
分类:
Web程序 时间:
2014-08-19 01:04:23
阅读次数:
251
//GameScene.h
#include?"cocos2d.h"
class?GameScene?:?public?cocos2d::Layer
{
public:
????static?cocos2d::Scene*?createScene();
????
????virtual?bool?init();
????
????...
分类:
其他好文 时间:
2014-08-14 21:12:30
阅读次数:
230
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?CC上的原题,...
分类:
其他好文 时间:
2014-08-14 03:45:17
阅读次数:
192
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?思路...
分类:
其他好文 时间:
2014-08-11 20:48:22
阅读次数:
220
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:使用两个指针slow和fast,分别以1和2的速度遍历链表。若链表中存在环,则...
分类:
其他好文 时间:
2014-08-11 20:45:12
阅读次数:
230
leetcode上有两个关于n皇后的问题,两个题目基本是一样的,只是第二个是把所有的排法求出来。n皇后最简单的就是用递归,每次判断一行的一个位置,如果合法,就判断下一行,不合法再判断下一个位置
N-Queens II
Follow up for N-Queens problem.
Now, instead outputting board configuration...
分类:
其他好文 时间:
2014-08-11 15:06:12
阅读次数:
227
MacIf you're using the excellenthomebrewpackage manager, you can install node with one command:brew install node.Otherwise, follow the below steps:Ins...
上篇回顾
上篇中,蛤蟆学习了OrbitCamera的使用,并了解了其大概。虽然那个OrbitCamera::create函数中参数比较难理解,但是我们还是抽象的尝试说明了一下。呵呵,这次蛤蟆学习如何用屏幕锁定精灵的运行。
理论介绍
首先我们来看下 继承关系如下。
Follow直接继承于Action类的,看上去还挺老资格的,其实也是老资格的。谁让...
分类:
其他好文 时间:
2014-08-09 11:41:42
阅读次数:
218
原创文章,转载请注明出处
ios项目,如果有内置下载或者程序动态生成文件的话,就要注意所下载或生成的文件,要不要自动备份到iCloud
如果没有合适的理由就自动上传大文件的话,可能在不能通过应用审核. 收到一下类似这样的答复
We also found that your app does not follow the iOS Data Storage Guidelines, which i...
分类:
移动开发 时间:
2014-08-07 19:15:20
阅读次数:
256
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-08-05 18:09:19
阅读次数:
168