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
| -- http://rosettacode.org/wiki/Category:Programming_Tasks | |
| -- https://github.com/karan/Projects | |
| -- http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/ |
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 main | |
| import ( | |
| "fmt" | |
| "time" | |
| "sync" | |
| "strconv" | |
| // "sync/atomic" | |
| "github.com/orcaman/concurrent-map" | |
| ) |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <malloc.h> | |
| #include <time.h> | |
| #include <assert.h> | |
| #include <sys/wait.h> | |
| #include <errno.h> | |
| #include <assert.h> | |
| #include <ctype.h> | |
| #include <stdarg.h> |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <assert.h> | |
| #include <sys/wait.h> | |
| #include <errno.h> | |
| #include <assert.h> | |
| #include <ctype.h> | |
| #include <stdarg.h> | |
| #include <arpa/inet.h> |
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
| #include <stdio.h> | |
| #include <time.h> | |
| #include <assert.h> | |
| #include <sys/wait.h> | |
| #include <errno.h> | |
| #include <assert.h> | |
| #include <ctype.h> | |
| #include <stdarg.h> | |
| #include <arpa/inet.h> | |
| #include <sys/stat.h> |
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
| #define _LARGEFILE64_SOURCE 1 | |
| #define _FILE_OFFSET_BITS 64 | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <malloc.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <getopt.h> | |
| #include <sys/stat.h> | |
| #include <x86intrin.h> |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <assert.h> | |
| #include <signal.h> | |
| #include <libmill.h> | |
| #include <rocksdb/c.h> | |
| #include <time.h> | |
| #include <sys/time.h> |
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 influx = require('influx'); | |
| var assert = require('assert'); | |
| var client = influx({ | |
| //cluster configuration | |
| /*hosts : [ | |
| { | |
| host : 'localhost', | |
| port : 8060, //optional. default 8086 | |
| protocol : 'http' //optional. default 'http' |
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 levelup = require('levelup'); | |
| var Promise = require('any-promise'); | |
| var co = require('co'); | |
| var levelPromisify = require('level-promisify'); | |
| var fsp = require('fs-promise'); | |
| var fs = require('fs'); | |
| var Emitter = require('events').EventEmitter; | |
| var util = require('util'); | |
| var Measured = require('measured'); | |
| var histogram = new Measured.Histogram(); |
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
| const net = require('net'); | |
| const Framer = require('./framer') | |
| var m = Date.now(); | |
| var c = 0; | |
| const BC = 200000; | |
| function Client(socket) { | |
| this.socket = socket; | |
| this.list = []; | |
| this.batchLen = 0; |