最少有三个长期分支
- master: 用于生产环境部署
- testing: 用于测试环境测试
- dev: 用于日常开发
有一些临时分支
#!/usr/bin/env python | |
''' | |
Query on GoogleImageSearch and install resulted images by scraping. | |
To use this script install mechanize and BeautifulSoup packages as | |
easy_install mechanize | |
easy_install Beautiful |
define(function (require) { | |
var module; | |
// Setup temporary Google Analytics objects. | |
window.GoogleAnalyticsObject = "ga"; | |
window.ga = function () { (window.ga.q = window.ga.q || []).push(arguments); }; | |
window.ga.l = 1 * new Date(); | |
// Immediately add a pageview event to the queue. |
#!/usr/bin/python | |
# -*- encoding: UTF-8 -*- | |
import codecs | |
import sys | |
from math import log | |
from collections import defaultdict | |
class Trie (object): | |
class TrieNode: |
<?php | |
# http://darklaunch.com/2009/08/07/base58-encode-and-decode-using-php-with-example-base58-encode-base58-decode | |
################################################################# | |
function base58_encode($num) { | |
$alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'; | |
$base_count = strlen($alphabet); | |
$encoded = ''; |
<?php | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |
func callA() string { | |
time.Sleep(time.Millisecond * 300) | |
return "Hello A" | |
} | |
func callB() string { | |
time.Sleep(time.Millisecond * 100) | |
return "Hello B" | |
} |
#include <czmq.h> | |
#define NUM_MESSAGES (50000000) | |
void no_op(void *unused1, void *unused2) {} | |
void run_send() { | |
zctx_t *ctx = zctx_new(); | |
void *outsock = zsocket_new(ctx, ZMQ_PUSH); | |
zsocket_connect(outsock, "tcp://localhost:5005"); |
// EDIT: 2013/10/20 | |
// google has updated its kwt UI, this script doesn't work any more! | |
// may be I will update this script when I have time to investigate their new Interface. | |
// requires | |
var utils = require('utils'); | |
var casper = require('casper').create() | |
var casper = require('casper').create({ | |
verbose: true, |
// Copyright 2012 Junqing Tan <[email protected]> and The Go Authors | |
// Use of this source code is governed by a BSD-style | |
// Part of source code is from Go fcgi package | |
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15 | |
// By: wofeiwo | |
package fcgiclient | |
import ( |