一直想使用nodejs来搭建个人blog,由于拖延症的缘故一直没有完成。在godaddy上注册了域名,但是备案太麻烦,于是有了以下实践。说明下目前这个blog使用的一些技术和平台:ghost7ghostwww.nitrous.iophpclouddnspodgodaddyghostghost是搭建....
分类:
其他好文 时间:
2014-05-22 05:11:05
阅读次数:
343
在各种关于NodeJS的教材中,必定会有关于express的介绍.express本身是一个很赞的库.在之前的express版本中,在全局模式安装(npm -g
install express)之后,在cmd命令行中,都可以使用express命令进行各种操作(创建简单的网站模板等).但是,现在安装后,...
分类:
其他好文 时间:
2014-05-22 05:02:31
阅读次数:
332
《对话LinusTorvalds:大多黑客甚至连指针都未理解》http://www.csdn.net/article/2013-01-10/2813559-two-star-programming“不懂指针”的开发者代码示例:
1 typedef struct node 2 { 3 ...
分类:
其他好文 时间:
2014-05-22 04:40:17
阅读次数:
245
为了让NodeJS开发的网站能在服务器端正常运行,最好把NodeJS需要运行的代码注册成Windows服务,服务器如果重启也不需要重新去启动NodeJS。1、编写一个执行NodeJS脚本的bat文件(run.bat),如下:@echo
offd:cd D:\[目录]node [需要执行的文件名].j...
Find the inverse Kth node of a linked list.
分类:
其他好文 时间:
2014-05-22 03:29:46
阅读次数:
247
/**根据完美二叉树或者非完美二叉树都可以,利用左右子树的根节点的next节点信息来连接next*/public void
connect(TreeLinkNode root){ if(root==null) return; //利用父节点的next...
分类:
其他好文 时间:
2014-05-22 03:03:39
阅读次数:
183
Delete node in linked list in O(1).
分类:
其他好文 时间:
2014-05-22 00:05:51
阅读次数:
190
链表结点类型定义:1 class Node {2 public:3 int data = 0;4
Node *next = nullptr;5 6 Node(int d) {7 data = d;8 }9 };快行指针(runner)技巧:同时...
分类:
编程语言 时间:
2014-05-21 04:26:19
阅读次数:
444
#include#include#includetypedef int Item;typedef
struct node* PNode;typedef struct node{ Item data; PNode next;}Node;typedef
struct{ PNode fr...
分类:
其他好文 时间:
2014-05-21 04:20:54
阅读次数:
219
DescriptionA rooted tree is a well-known data
structure in computer science and engineering. An example is shown below:In the
figure, each node is lab...
分类:
其他好文 时间:
2014-05-21 03:23:51
阅读次数:
296