Node-APN是一个开放的结合了苹果推送通知的Node.js模块,该源码模块使用简单,反馈服务支持、错误处理,在发送出错时自动重发。遵从苹果的最佳实践。Node-APN(github)
分类:
其他好文 时间:
2014-07-18 16:07:29
阅读次数:
223
nginx中使用lua脚本的方法,本文介绍通过第三方模块lua-nginx-module实现lua脚本在nginx的调用,并附一个配置例子Lua是一种跟JavaScript很像的语言,Ngix_Lua同样使用异步单线程,语法甚至比JS更加简单,之前的评测指出,Ngix_lua的性能几乎是Node.J...
分类:
其他好文 时间:
2014-07-18 14:25:27
阅读次数:
243
同一套业务逻辑,实现一个webservice中间接口,中间涉及memcached和mogodb的一些操作。分别在Node.js和JAVA平台实现,java代码部署在Tomcat 7.0上,用Apache jmeter进行压力测试。得到的测试结果很是出乎意料,Node.js的高并发优势为什么没有体现出...
分类:
Web程序 时间:
2014-07-18 13:31:34
阅读次数:
428
通过npm link使项目中所用的包及时更新到该包的最新代码。...
分类:
其他好文 时间:
2014-07-18 11:00:53
阅读次数:
259
// 这是一个简单的Node HTTP,能处理当前目录的文件// 并能实现良种特殊的URL用于测试// 用http://localhost:8000 或http://127.0.0.1:8000 连接这个服务器// 首先,加载所有要用的模块var http = require('http'); .....
分类:
Web程序 时间:
2014-07-18 10:13:12
阅读次数:
235
官网:http://luvit.io/Luvit is an attempt to do something crazy by taking node.js' awesome architecture and dependencies and seeing how it fits in the Lu...
分类:
其他好文 时间:
2014-07-18 10:03:40
阅读次数:
317
BFS结合队列#include#include#includeusing namespace std;int x,y,l;const int maxn=300+5;int visit[maxn][maxn];struct node{ int xpos; int ypos; int ...
分类:
其他好文 时间:
2014-07-18 00:11:24
阅读次数:
245
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-07-17 23:27:12
阅读次数:
216
模拟吧,算是。。。被这个题wa到哭,真是什么都不想说了。。。上代码 1 #include 2 #include 3 using namespace std; 4 5 struct node { 6 int x,y; 7 char c; 8 }q[10]; 9 ...
分类:
其他好文 时间:
2014-07-17 22:21:32
阅读次数:
458
简单搜索
直接代码:
#include
#include
#include
#include
using namespace std;
char a,c;
int e,f;
int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2};
int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1};
int qq[9][9];
struct node
{...
分类:
其他好文 时间:
2014-07-17 19:05:30
阅读次数:
265