Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
dongyuwei / weibo_wap.js
Created August 14, 2012 07:45
自动登陆新浪微博移动版( http://m.weibo.cn ) 发微博
var http = require('http');
var qs = require('querystring');
function parse_response(res, callback) {
var list = [];
res.on('data', function(chunk) {
list.push(chunk);
});
res.on('end', function() {
callback(Buffer.concat(list).toString());
@kejun
kejun / dabblet.css
Created June 4, 2012 03:25
Untitled
.item {
margin-bottom: 20px;
padding: 10px;
font-size: 0;
border: 1px solid #efefef;
}
.item .pic ,
.item .content {
display: table-cell;
*display: inline;
@tianyicui
tianyicui / y.scm
Created March 25, 2011 02:56
Deriving Y combinator in Scheme
(define fact0
(lambda (n)
(if (= n 0)
1
(* n (fact0 (- n 1))))))
(define fact1
(let
((g
(lambda (h)
# This file is part of the Spludo Framework.
# Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/
#
# Licensed under the terms of MIT License. For the full copyright and license
# information, please see the LICENSE file in the root folder.
child_process = require('child_process')
fs = require("fs")
sys = require("sys")