- Bytes and Blobs by David Flanagan
- Conference Wifi Redux by Malte Ubi
- Sashimi - https://github.com/cramforce/Sashimi
- Run Your JS everywhere with Jellyfish by Adam Christian - http://jelly.io Project
- Fighting Crime and Kicking Apps with Batman.js by Nick Small
- Hello Jo by Dave Balmer - Project - http://joapp.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){m='http://mail.google.com/mail/?ui=1&view=cm&fs=1&tf=1&[email protected]&su='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(document.location);w=window.open(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout(function(){w.focus();}, 250);})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsonp = { | |
callbackCounter: 0, | |
fetch: function(url, callback) { | |
var fn = 'JSONPCallback_' + this.callbackCounter++; | |
window[fn] = this.evalJSONP(callback); | |
url = url.replace('=JSONPCallback', '=' + fn); | |
var scriptTag = document.createElement('SCRIPT'); | |
scriptTag.src = url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* express 처음에 init 하시면 app.js 를 비롯하여 여러 디렉토리가 생기는데 | |
* logs 디렉토리에 아무것도 안남는다고 의문을 가지신 분에게 도움이 될거 같습니다. | |
* connect의 middleware logger 는 기본이 stdout 으로 출력하고 있었네요. | |
* http://senchalabs.github.com/connect/middleware-logger.html | |
* manual을 살펴보니 stream options 이 있었군요. | |
* 한번 생각나서 fs core module의 createWriteStream 을 사용하여 해봤더니 잘되네요. | |
* 다른 방법도 있으신분은 알려주세요 | |
*/ | |
var fs = require('fs'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = nanha park | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = true | |
[alias] | |
co = checkout |
- Bytes and Blobs by David Flanagan
- Conference Wifi Redux by Malte Ubi
- Sashimi - https://github.com/cramforce/Sashimi
- Run Your JS everywhere with Jellyfish by Adam Christian - http://jelly.io Project
- Fighting Crime and Kicking Apps with Batman.js by Nick Small
- Hello Jo by Dave Balmer - Project - http://joapp.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// load redis client | |
var r = require('redis').createClient(); | |
// set data for key | |
r.set('key', data); | |
// add data to key (list) | |
r.lpush('key', data); | |
// trim list to specific length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 1:1채팅중에 참여중인 namespace+room 목록 | |
■ 요구조건 | |
- 서로의 대화명을 클릭시 메신저 창이 따로 보여지면 안됨. | |
- 자신이 대화중인지를 클라이언트 혹은 서버에서 판단할 필요있음. | |
■ 해결방법 | |
- sessionid를 공유변수로 설정할려 했으나, socket.io lib 에 뭔가 있을거 같은 생각. ㅋ | |
- https://github.com/LearnBoost/socket.io/blob/master/lib/manager.js 에 많은 정보가 들어있음. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* parallel execute | |
* 결과 | |
1321326610687 | |
1321326610687 | |
1321326610687 | |
[1, 2, 3] | |
async | |
------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Combo(callback) { | |
this.callback = callback; | |
this.items = 0; | |
this.results = []; | |
} | |
Combo.prototype = { | |
add: function () { | |
var self = this, | |
id = this.items; |
OlderNewer