Introducing difflet, a handy node.js module for computing pretty object diffs! Just plug in some initial options and the objects you want to compare! var difflet = require('difflet'); var s = difflet({ indent : 2, comment : true }).compare( { z : [6,7], a : 'abcdefgh', b : [ 31, 'xxt' ] }, { x : 5, a : 'abdcefg', b : [ 51, 'xxs' ] } ); console.log(s); and you'll get a colored and annotated object
A simple pixel-tracker for node.js Example Collect any data with parameters, along with some defaults var tracker = require('pixel-tracker') tracker.use(function (e, res) { console.log(res) /* { host: 'localhost:3000', domain: 'localhost', path: '/pixel', geo: { ip: '127.0.0.1' } ua: { browser: 'Chrome', version: '13.0' }, cookies: { _tracker: '0rc8ba4t9fgjp9hz' }, language: 'en-US,en;q=0.8', ca
Hello everyone! This is the ninth post in my new node.js modules you should know about article series. The first post was about dnode - the freestyle rpc library for node, the second was about optimist - the lightweight options parser for node, the third was about lazy - lazy lists for node, the fourth was about request - the swiss army knife of HTTP streaming, the fifth was about hashish - hash c
Introducing nQuery.js, a crazy new library that lets you write jQuery on the server. And yes it works with the browser in realtime. You can bind events directly to the server, such as swipe and hover using RPC. Don't worry, it's fast. nQuery is a minimalist DOM manipulation framework that is bringing jQuery methods to the server so you dont have to serve client side javascript in order to make a r
[追è¨] nvm 㯠.zshrc ã®ãããå ·åã«ãã£ã¦ã¯ã表示ããã¾ããããªãã£ããããããå¤ãªåããããããããã¨ãæãã¨ããæå³ã§ãnvm èªä½ã¯ããããäºç´°ãã«å¯¾å¿ããã¤ããã¯ãªããèªå㯠bash ã«åãæ¿ãããã¨ã§å ¨ã¦ã®ä¸å ·åãåé¿ãã¦ããã¨ããæå³ã§ãããnvm ã¯ä½¿ãç©ã«ãªãããã¨ããã¤ã³ã¹ãã¼ã«ãã¾ã¨ãã«åºæ¥ãªãããªã©ã¨è¨ãã¤ããã¯ãªãããæ¸ãã¦ã¾ãããå®éä»ä½¿ã£ã¦ãã¾ãã
主ã«å¤é¨ã®APIã絡ãã§ããã¢ããªã®ãã¹ãã«ä½¿ããã¢ã¸ã¥ã¼ã«ã§ããNode.jsã®æ¨æºã¢ã¸ã¥ã¼ã«ã§ããhttpã§ã¯ãªããrequestã¨ããã¢ã¸ã¥ã¼ã«çµç±ã®HTTPã¢ã¯ã»ã¹ãä¹ã£åã£ã¦ã¬ã¹ãã³ã¹ãå½è£ ãã¾ãã ctide/fakeweb â GitHub npmã§å ¥ãããã¨ãåºæ¥ã¾ãã npm install request node-fakeweb 使ãæ¹ã¯ä¸è¨ã®ããã«ãã¾ãã var request = require('request'); var fakeweb = require('node-fakeweb'); fakeweb.allowNetConnect = false; fakeweb.registerUri({ uri: "http://www.google.co.jp:80/", statusCode: 200, body: "Hello World!" }); re
nodejsããã°ã®2011.10.4ã®ã¨ã³ã㪠An Easy Way to Build Scalable Network Programs « node blog ryanã«ããnodeåèè¨äº ãªããã®ã¿ã¤ãã³ã°ã§ï¼ æè¿è©±é¡ã®ãnodeãªãã¦çã ãï¼by@dozbaï¼çºè¨ã¸ã®ryanããã®çé¢ç®ãªåå¿ã®ï¼ã¤ ä»åã®é¨åã¯ãã¬ã¼ã ã®æ´å²ã®2011å¹´ã®ã¨ãã½ã¼ãã®ï¼ã¤ã¨ãã¦ã«ã¦ã³ããããã¨æããã Node.js is Cancer 翻訳ããã¦ã uu59ã®ã¡ã¢ | 訳ï¼Node.jsã¯çã ebayã®ã¨ã³ã¸ãã¢ãmilo.comã®ãã¡ã¦ã³ãã¼ã®ä¸äººãä½ã¬ãã«ã«ã詳ãããã¨ããæ¹ãªãã ãã©ãä¹±å¿ããã¦ã¬ã¹ãä¸æçã§ãã¤ã³ãããããããã ryanããã®çé¢ç®ãããªãåå¿ããã ãyoutubeã®nodeã®introåç»ã®åçåæ°ã10ä¸åè¶ ããnodeã®ç¹æ®åã¯ã¾ãã§çã Twitte
iphoneã¢ããªã§node.jsã¨éä¿¡ããã ãã¤ãã£ãã¢ããªã§ãªã¢ã«ã¿ã¤ã ãªéä¿¡ãã§ããã®ã§å¹ ãåºããããã ç°å¢ã¯MacOSX10ã§ãä»åã¯å ¨é¨ãã¼ã«ã«ä½æ¥ã objective-cã§WebSocketéä¿¡ iPhoneã¢ããªã¨node.jsã§åæ¹åéä¿¡ããã®ã¯ããã¡ããWebSocketã§è¡ããnode.jsãã¤ã³ã¹ãã¼ã«ãããã¨ãã人ã¯ãããã¨æãããWebSocketéä¿¡ã¯socket.IOã¢ã¸ã¥ã¼ã«ã§è¡ã£ã¦ããã®ã§ã¯ã©ã¤ã¢ã³ããµã¤ã(objective-c)ãsocket.IOã«ããããã©ã¤ãã©ãªã¯sokect.IO-objcã使ãã ã¤ã³ã¹ãã¼ã« xcodeå´ socket.IO-objcã®ä¾åã©ã¤ãã©ãªãã¤ã³ãã¼ã cocoa-websocket RegexKitLite json-framework ASIHTTPRequest cocoa-websocket http
HEADS UP! This article was written for an older version of node. More up-to-date information may be available elsewhere. Update: By request I have posted a gist of the app.js using MongoDB instead of CouchDB. This gist also serves as a beginning example for how to use non-promise-based APIs with bogart. In this article, you will learn how to use Bogart and CouchDB to create a minimal blogging engi
ã¿ãªããã楽ããKinectãHackãã¦ãã¾ããï¼ å ¬å¼/éå ¬å¼ãªããã¤ã¹ãã©ã¤ããæã«å ¥ããç¬éãããKinectã¯åãªãã²ã¼ã ã³ã³ããã¼ã©ã®æ ãè¶ãããã·ã³ãã«ãªAPIãæã£ã3Dã«ã¡ã©ãã¨ãã¦å©ç¨ã§ããããã«ãªãã¾ãã ä¸çä¸ã®ããã«ã¼ãããã£ã¦KinectãHackãã¦ããã 3D Video Capture with Kinect ã Kinectã§ã¹ã¼ãã¼ãã¼ãã¼ã«å¤èº« ã Kinectã使ã£ã¦ãã©ã¦ã¶ã®WebGLå ãåãã¦ã¿ã ãªã©ãç§é¸ãªåç»ãããããå ¬éããã¦ãã¾ãã ããã身ã«ä»ãã¦æ©ããã»ã©Kinectã»ã³ãµã¼ã¯å°ãããªããããKinectã»ã³ãµã¼ã¯åºå®PCã«æ¥ç¶ãæ®ãç½®ããããå¾ã¾ããã Kinectã»ã³ãµã¼ããå¾ã¦ä»å æ å ±ãéç³ããæ åãããã®åºå®PCä¸ã§è¡¨ç¤ºããã ãã§ãªããKinectã»ã³ãµã¼ã®ã¿ã¼ã²ããã¨ãªã£ã¦ãã人ç©èªèº«ã¸ä½ããã®æ段ã§é éé ä¿¡ã§ã
ååã«å¼ãç¶ãconnect.jsãèªããä»åã¯connect/http.jsããããconnectã®ã³ã¢ã ã¾ãæåã«ã³ã³ã¹ãã©ã¯ã¿ãããã§http.Serverãç¶æ¿ãã¦ãããã§http.Server.call(this, this.handle)ã£ã¦ãã£ã¦ãã®ã§ãªã¯ã¨ã¹ããã³ãã©ãthis.handleã«ãã¦ãããªã¯ã¨ã¹ãã¯å ¨é¨ãã®this.handleã§å¦çãããã¨ãããã¨ã«ãªãã var Server = exports.Server = function HTTPServer(middleware) { this.stack = []; middleware.forEach(function(fn){ this.use(fn); }, this); http.Server.call(this, this.handle); }; /** * Inherit from `http.
使ç¨ãããã¬ã¼ã ã¯ã¼ã¯ã®ã³ã¼ãã¯ã¡ããã¨èªãã§ç解ãã¨ãã¨åã人ãè¨ã£ã¦ãæ°ãããã®ã§expressã®ã³ã¼ããèªãã§ã¿ãã ä»åèªãexpressã®ãã¼ã¸ã§ã³ã¯2.4.3ã GitHub - expressjs/express at 2.4.3: Fast, unopinionated, minimalist web framework for node. ãããã®åã«ä¾åãã¦ãã¢ã¸ã¥ã¼ã«ãèªããexpressãä¾åãã¦ãã©ã¤ãã©ãªã¯ä»¥ä¸ã®ããã«ãªã£ã¦ããã "dependencies": { "connect": ">= 1.5.1 < 2.0.0", "mime": ">= 0.0.1", "qs": ">= 0.0.6" }, "devDependencies": { "connect-form": "0.2.1", "ejs": "0.4.2", "expresso": "0.7.
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}