应一些人之邀。。。发一篇代码 1 #include 2 #include 3 #include 4
#include 5 6 using namespace std; 7 struct node 8 { 9 int data; 10 int key;
11...
分类:
其他好文 时间:
2014-05-23 05:17:06
阅读次数:
246
1 #include 2 //quickSort 3 int partition(int
a[],int start,int end) { 4 int node = a[start]; //初始节点 5 while(start= node
&& end > start) ...
分类:
其他好文 时间:
2014-05-23 04:04:22
阅读次数:
304
【7.4】 1 #include 2 #include 3 #include 4 using
namespace std; 5 #define MAXN 100 6 7 typedef struct node{ 8 char data; 9 node
*lchild;10 ...
分类:
其他好文 时间:
2014-05-23 03:26:20
阅读次数:
260
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-22 16:05:56
阅读次数:
239
1.介绍 该教程涵盖了1.8版本的C#驱动中的LINQ查询。你可能已经阅读最新的C#
Driver Tutorial。 2.快速开始 首先,给程序添加下面的using声明 using
MongoDB.Driver.Linq;然后,像往常一样,获取一个collection的引用变量:var colle...
分类:
其他好文 时间:
2014-05-21 19:14:39
阅读次数:
385
ode.js
是一套用来编写高性能网络服务器的JavaScript工具包,一系列的变化由此开始。比较独特的是,Node.js会假设你是在POSIX环境下运行它 Linux 或
Mac OS X。如果你是在Windows下,那就需要安装MinGW以获得一个仿POSIX的环境。在Node中,Http是首...
分类:
Web程序 时间:
2014-05-21 18:52:32
阅读次数:
394
A机器上有mongodb服务,A机器要废,于是迁至B。
简单起见,依然是在A上ps auxwww|grep mongo找到正在运行的进程:
/home/admin/mongodb/mongodb-linux-x86_64-2.2.0/bin/mongod -f /home/admin/mongodb/mongodb.conf
于是把/home/admin/mongodb/ 拷到B下。
在b...
分类:
数据库 时间:
2014-05-21 15:24:05
阅读次数:
540
Node-Canvas 安装的时候,并没想到有如此多的坑。看来npm也不是万能的。canvas需要cario,而cario需要libpng,又需要pixman,同时pkg-config更是前提,官网提供的pkg-config版本又在Mac OS 10.9 上有问题。本文将对node-canvas安装提供简要的讲解和坑的填充。...
分类:
其他好文 时间:
2014-05-21 14:44:48
阅读次数:
1937
WebStorm
8 with IdeaVim plugin
vim, sublime
sublime加上node插件。
nide
Brackets
vim + jshint2.vim
eclipse
Visual Studio 2013 + NTVS(Node.js
Tools for Visual Studio)
notepad++
atom.io
Nodejs c...
分类:
Web程序 时间:
2014-05-21 13:36:47
阅读次数:
493
先用node安装下载selenium-standalone server并运行npm install
webdriverjsjava -jar
path/to/your/selenium-server-standalone-2.39.0.jar 创建test_webdriver.jsvar
webd...
分类:
Web程序 时间:
2014-05-21 12:11:58
阅读次数:
403