码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
解决node在ubuntu下npm install canvas不断报错的尴尬
项目中需要用到node中一个验证码的npm包:captchagen,此npm包依赖canvas画布npm包。执行npm install canvas时就会报错,错误代码显示文件编译失败。最终在github问答上找到答案: 问题根源是ubuntu中缺少图形开发...
分类:其他好文   时间:2014-08-01 16:22:14    阅读次数:218
爪哇国新游记之二十四----二叉树
/** * 二叉树节点类 * */class Node { public Node(T data){ this.data=data; } T data; Node left; Node right;}/** * 二叉树类*/public class BinaryTree { /...
分类:其他好文   时间:2014-08-01 15:47:41    阅读次数:161
squid节点添加新域名测试
squid节点添加新域名 测试是否缓存成功 1 #!/bin/bash 2 #2014-8-1 3 4 clear #清屏 方便输出结果观看 5 6 url=* #需要测试的url 7 8 array_node[0]="*" #节点ip做成一个关联数组 9 array_node[1]="*"1...
分类:其他好文   时间:2014-08-01 15:47:11    阅读次数:268
HDU1873 优先队列
STL实现优先队列 使用方法: 头文件: #include 声明方式: priority_queueq; 结构体的声明方式: struct node { int x, y; friend bool operator b.x; //结构体中,x小的优先级高 } };...
分类:其他好文   时间:2014-08-01 13:52:41    阅读次数:186
poj 2970 优先队列
就多个等于号纠结死 先按di排序,(从小到大)。然后依次完成合同,若发现第i个合同无法在截止日期前完成,便从之前已经完成的任务中选一个aj最大的合同,付钱来使得这个合同尽快完成。 #include #include #include #include #include using namespace std; struct node {     int q;     in...
分类:其他好文   时间:2014-08-01 13:48:41    阅读次数:239
Express框架
概述Express是目前最流行的基于Node.js的Web开发框架。它可以快速地搭建网站原型。Express是一个node.js模块,采用npm全局模块。sudonpminstall-gexpress安装完成后,在工作目录新建一个新项目,假定叫做node-demo。expressnode-demo这...
分类:其他好文   时间:2014-08-01 13:33:21    阅读次数:293
centos下安装nodejs, log.io
centos6.4, 6.5自带的python版本可以安装相应的nodejs版本wget http://nodejs.org/dist/v0.9.0/node-v0.9.0.tar.gz tar zxvf node-v0.9.0.tar.gz cd node-v0.9.0 ./co...
分类:Web程序   时间:2014-08-01 13:06:31    阅读次数:278
[leetcode]Populating Next Right Pointers in Each Node II
Populating Next Right Pointers in Each Node IIFollow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any ...
分类:其他好文   时间:2014-07-31 23:16:30    阅读次数:182
Balanced Binary Tree(Java代码没过,什么原因???)
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:编程语言   时间:2014-07-31 20:55:47    阅读次数:197
javascript之DOM
一、节点层次 1、node类型 nodeName、nodeValue 以及 nodeType 包含有关于节点的信息。 每个节点都有一个nodeType属性 值-元素类型 1-ELEMENT 2-ATTRIBUTE 3-TEXT 4-CDATA 5-ENTITY REFERENCE 6-ENTITY 7-PI (processing instruction...
分类:编程语言   时间:2014-07-31 20:51:37    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!