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
/* | |
** Modification by Norman Xu | |
** Based on : | |
** Peteris Krumins ([email protected]) | |
** http://www.catonmat.net -- good coders code, great reuse | |
** | |
** A simple proxy server written in node.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
{ | |
objective: 'Seeking for a job as \ | |
Tester or Web Developer', | |
name: 'Norman Xu', | |
birthday: '1984-06-16', | |
isMale: true, | |
mail: '[email protected]', | |
cellphone: '18653139979' | |
} |
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
// the C# 'yield' implementation in javascript | |
!function(){ | |
window.yield = function(func){ | |
this._bodyFunc=null; | |
}; | |
var p = yield.prototype; | |
p.body = function(func){ | |
this._bodyFunc = func; |
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(undef){ | |
"use strict"; | |
var noConflict = null; | |
var chn = function(obj){ | |
return new wrapperCtor(obj); | |
}; | |
chn.noConflict = function(){ | |
if (noConflict){ |
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
transcript for http://v.youku.com/v_show/id_XMTczMDI1MTAw.html | |
biology before becoming a comedian | |
pls welcome very funny joe wong | |
[applauds] | |
hi everybody |
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 ObjectContainer = []; | |
var HOW_MANY_OBJ = 100000; | |
var memoryHolder; | |
function Heavy (){ | |
this.load = function(){ | |
var str = | |
'gabagesgabagesgabagesgabagesgabages'; | |
for(var i = 0; i < 9999; i++){ | |
str+=str; |
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 ObjectContainer = []; | |
var HOW_MANY_OBJ = 100000; | |
var memoryHolder; | |
function Heavy (){ | |
var ret=function(){}; | |
ret.load = function(){ | |
var str = | |
'gabagesgabagesgabagesgabagesgabages'; | |
for(var i = 0; i < 9999; i++){ |
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 foobar2 = jQuery('#main')[0].contentWindow; | |
var hack = {}; | |
hack.config = { | |
today: '2012-01-08', | |
date: '2012-01-20', | |
from: 'SMS', | |
fromText: '三明', | |
toText: '上海南', | |
to: 'SNH', |
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
// run it on http://css3.bradshawenterprises.com/demos/speed.php?rows=100 | |
var wrapper = jQuery('#jquery').appendTo(document.body), | |
divset=jQuery('#jquery div').toArray(); | |
var astop = false, render=false , hex=0; | |
!function () { | |
if (astop) return; | |
if (render) render(); | |
setTimeout(arguments.callee, 0) | |
}(); |
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
// Original article http://delog.wordpress.com/2011/04/26/stream-live-webm-video-to-browser-using-node-js-and-gstreamer/ | |
var express = require('express'), | |
net = require('net'), | |
child = require('child_process'); | |
var app = express.createServer(), socket, header = []; | |
var server = net.createServer( function(s){ | |
socket = s; |
OlderNewer