码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
Ubuntu14.04 搭建 node.js 环境(Binaries方式)
从官网下载 http://nodejs.org/download/Linux Binaries (.tar.gz) 下载下来的是node-v0.10.29-linux-x64.tar.gz文件解压 $ tar zxvf node-v0.10.29-linux-x64.tar.gz/etc/profi...
分类:Web程序   时间:2014-07-13 10:54:53    阅读次数:267
【leetcode】Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2014-07-13 08:13:53    阅读次数:251
require.js+backbone 使用r.js 来压缩,本地不压缩,生产环境压缩 的实现方式
本文主要讲 利用r.js压缩,来实现本地不压缩,生产环境压缩 r.js 是运行在node上的,默认使用UglifyJS。UglifyJS真的很好用,那为什么说默认的方式 不是很方便呢? r.js 单独压缩一个文件也很好用的,但在实际项目中,总不能一个一个压吧!因此r.js提供了一种多文件的压缩方式 ,使用一个叫bulid.js 的配置文件来配置模块,这样可以压缩多个模块。 但是,问题有几个:...
分类:Web程序   时间:2014-07-12 23:02:01    阅读次数:260
NLP: 中文分词算法--正向最大匹配 Forward Maximum Matching
最近接触NLP中文分词, 在lunr.js的基础上, 实现了中文的最大正向匹配分词。 某些情况下, 我们在服务器端进行中文文本分词可以使用完整的基于mmseg算法的分词模块, 例如nodejieba, node-segment, 盘古分词等等,  但是在客户端环境下, 我们不能使用这些复杂的分词算法进行分词, 这个时候可以根据已经生成的索引进行简单的客户端分词, 就是所说的FMM (Forwar...
分类:其他好文   时间:2014-07-12 22:18:57    阅读次数:301
DRP——Dom4j使用
dom4j是一个Java的XMLAPI,类似于jdom,用来读写XML文件的。dom4j是一个非常非常优秀的JavaXMLAPI,具有性能优异、功能强大和极端易用使用的特点。Dom4j是一个易用的、开源的库,用于XML,XPath和XSLT。它应用于Java平台,采用了Java集合框架并完全支持DOM,SAX和JAXP。 Dom4j的主要接口:   Node为所有的dom4j中XML...
分类:其他好文   时间:2014-07-12 21:58:03    阅读次数:383
drupal7 如何自定义内容部链接,并预留hook接口(自定义视图字段比较有用)
$links = array(); //获取系统菜单,所有权限都默认进行了验证 $links['case-edit']=menu_get_item('node/'.$row->nid.'/edit'); //自定义链接地址 $links['custom_url']=array( 'title' => t('custom_url'), ...
分类:其他好文   时间:2014-07-12 21:02:44    阅读次数:236
Sublime 脚本 配置 (lua 和 JavaScript篇)
{ "cmd" :["C:/Lua/Lua.exe","$file"], "file_regex" :"^(?:lua:)?[\t](...*?):([0-9]*):?([0-9]*)", "selector" :"source.lua" } { "cmd" :["node","$file"], "file_regex" :"^(?:js:)?[\t](...*?):([0-9]*)...
分类:编程语言   时间:2014-07-12 20:08:53    阅读次数:204
单链表的初始化和创建(尾插法)
1 #include 2 #include 3 typedef struct Node 4 { 5 int data; 6 struct Node *next; 7 }Node,*LinkList; 8 9 void initList(LinkList *L)10 {11 ...
分类:其他好文   时间:2014-07-12 14:38:30    阅读次数:201
hdu 2487 Ugly Windows 模拟
#include #include #include #include using namespace std;char map[110][110];int n,m;#define inf 100000struct node{ int x,y;};vector nn;int main(){ ...
分类:Windows程序   时间:2014-07-12 14:31:49    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!