#安装node apt-get install nodejs # 安装npm apt-get updateapt-get install npm # 安装forever 此时安装forever失败 npm ERR! Error: failed to fetch from registry: 执行:....
分类:
系统相关 时间:
2014-10-11 17:46:35
阅读次数:
680
话说,零八年前,我喜欢微软;11年后我搞了两年量子物理;今年四月份的时候,一个小我一岁的双子男问我, 知道现在什么语言应受重视?我无言,久在桃源了,已是不知有汉,无论魏晋。曰,JavaScript。于是,我玩儿这个。...
分类:
Web程序 时间:
2014-10-11 15:21:45
阅读次数:
178
Set a multi node Apache ZooKeeper clusterOn every node of the cluster add the following lines to the filekafka/config/zookeeper.propertiesserver.1=zNo...
分类:
Web程序 时间:
2014-10-11 13:20:15
阅读次数:
253
n*n*n的图形,m条线,每条线上的方格被删除,问一共删除了多少个方格
ans=m*n ,然后判断一下直线相交的交点,去重即可
#include "stdio.h"
#include "string.h"
int xy[1010][1010],xz[1010][1010],yz[1010][1010],hash[1010];
struct node
{
int x,y,z;
} ma...
分类:
其他好文 时间:
2014-10-11 11:55:35
阅读次数:
240
Express框架Node.js到底是什么呢?要问Node.js到底是什么,这个跟javascript有关,javascript本身是一种脚本语言,也就是它只能在网页页面中运行,而不能在服务器中运行,而随着我们软件行业的发展没我们的javascript翻身了,它也可以在在服务器上运行了,而它的服务器...
分类:
Web程序 时间:
2014-10-11 02:53:14
阅读次数:
215
#include #include #include #include #include #define inf 1000001using namespace std;struct node{ int x,y,c,w; int next;} eg[400001];int n,m,K,s,...
分类:
其他好文 时间:
2014-10-11 00:14:04
阅读次数:
242
选择排序(假设递增排序)
每次选取从当前结点到末尾结点中最小的一个与当前结点交换,每一轮固定一个元素位置。
时间复杂度O(n^2),空间复杂度O(1)。下面的示例代码以带头结点的链表为存储结构:
#include
#include
#define Elemtype double
struct Node
{
Elemtype data;
struct Node *next;
};
void...
分类:
编程语言 时间:
2014-10-10 21:50:04
阅读次数:
225
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1175普通的bfs,外加判断转角次数,就ko了。#include#include#include#includeusing namespace std;struct node{ int x,y; int.....
分类:
其他好文 时间:
2014-10-10 17:08:44
阅读次数:
187
看的概念挺朦胧的,没有明确好双链表到底需要哪些方法,其实针对这种结构应该可以写很多方法,并没有什么特定标准。
不过真是只看不练不行啊,一下手各种错误,各种溢出
#include
using namespace std;
template struct Node
{
T value;
Node* pre;
Node* next;
};
template class...
分类:
编程语言 时间:
2014-10-10 15:36:44
阅读次数:
247
最近,在向大学生们介绍 HTML5 的时候,我想要对他们进行问卷调查,并向他们显示实时更新的投票结果。鉴于此目的,我决定快速构建一个用于此目的的问卷调查应用程序。我想要一个简单的架构,不需要太多不同的语言和框架。因此,我决定对所有一切都使用 JavaScript — 对服务器端使用 Node.js ...
分类:
Web程序 时间:
2014-10-10 14:38:04
阅读次数:
294