This file contains hidden or 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
#coding:utf-8 | |
import ftplib | |
import time | |
import os.path | |
FTP_USER = '' | |
FTP_PWD = '' | |
REMOTE_HOST = 'ftp.debian.org' |
This file contains hidden or 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
/* | |
* SingletonOnce.hpp | |
* | |
* Created on: Jan 9, 2015 | |
* Author: wencan | |
*/ | |
#ifndef SINGLETONCALLONCE_HPP_ | |
#define SINGLETONONCE_HPP_ |
This file contains hidden or 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 src = [ | |
{ | |
"duration": [ | |
0, | |
"01:10:10" | |
], | |
"traffic": [ | |
{ | |
"customer": { | |
"tags": "!VIP" |
This file contains hidden or 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
#!/usr/bin/env node | |
var mongodb = require("mongodb") | |
, async = require("async") | |
, argv = require('minimist')(process.argv.slice(2)) | |
, table = require("cli-table") | |
; | |
var mongo_url = argv.mongodb || 'mongodb://127.0.0.1/test'; |
This file contains hidden or 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
package utils | |
import "sync" | |
var MegaBufPool *BufPool | |
func init() { | |
MegaBufPool = NewBufPool(1024 * 1024) | |
} |