进程管理NodeJS可以感知和控制自身进程的运行环境和状态,也可以创建子进程并与其协同工作,这使得NodeJS可以把多个程序组合在一起共同完成某项工作,并在其中充当胶水和调度器的作用。本章除了介绍与之相关的NodeJS内置模块外,还会重点介绍典型的使用场景开门红如何使用NodeJS调用终端命令来简化...
分类:
其他好文 时间:
2014-08-30 17:45:59
阅读次数:
256
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1166思路:线段树入门题。代码: #include #include #define MAXSIZE 500000using namespace std;struct node{ int l,r;...
分类:
其他好文 时间:
2014-08-30 16:19:19
阅读次数:
211
addEventListenerWithSceneGraphPriority1.跟node关联,通过event->getCurrentTarget() 可以获取到node2.如果有两个SceneGraphPriority,node的ZOrder大的先被触发,即如果两个重叠,前面那个先受到触发事件ad...
分类:
Web程序 时间:
2014-08-30 16:18:09
阅读次数:
186
#include
#include
#include
#include
using namespace std;
const int N = 25;
char map[N][N];
int vis[N][N][1<<11];
struct Node
{
int x,y,step;
int key;
};
int dx[6]={0,0,1,-1};
int dy[6]={1,-...
分类:
其他好文 时间:
2014-08-30 12:39:39
阅读次数:
196
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-08-30 08:49:59
阅读次数:
210
rick 的两个ppt整理下载:2012 2013 ,使用半年erlang后,重新看这两个ppt才发现更多值的学习的地方,从ppt中整理如下:- Prefer os:timestamp to erlang:now 应该禁止使用erlang:now(),稍微用得多,整个node的%si 飙满,且整体性...
分类:
移动开发 时间:
2014-08-30 01:10:28
阅读次数:
453
题目来源:POJ 1442 Black Box
题意:输入xi 输出前xi个数的第i大的数
思路:试了下自己的treap模版
#include
#include
#include
#include
using namespace std;
struct Node
{
Node *ch[2];
int r;
int v;
int s;
Node(){}
Node(int ...
分类:
其他好文 时间:
2014-08-30 00:04:28
阅读次数:
282
实验11,a.addChild(b); a的宽高没变,还是自己的宽高。层级添加不会改变原层大小。2.node.addChild(sprite);node的宽和高也没变 感觉2dx的显示不是树形结构。然后改变node的透明度也不管用,node不是个显示类,感觉唯一的作用就是操作很多个sprite。一起...
分类:
其他好文 时间:
2014-08-29 20:03:28
阅读次数:
255
1.node.js,npm包管理工具,用node xxx.js运行。 npm -l,查看已经安装的 npm install [-g] [plugin-name],-g表示作为全局模块 npm search ** ,查找某模块 npm help ,查看帮助 2.grunt,构建工具,通过Package...
分类:
其他好文 时间:
2014-08-29 19:55:28
阅读次数:
231
# Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Noneclass Solution: # @return ...
分类:
其他好文 时间:
2014-08-29 19:40:58
阅读次数:
164