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
while(true) { | |
Transaction transaction = new Transaction(conf, connection); | |
ThemisPut put = new ThemisPut(JOE).add(FAMILY, CASH, Bytes.toBytes(0)); | |
transaction.put(CASHTABLE, put); | |
transaction.commit(); | |
final Boolean[] b = {false}; | |
Thread thread1 = new Thread() { | |
public void run() { |
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"sync" | |
"time" | |
"runtime" |
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
/* | |
* Jakiro | |
* @desc Yet Another Comet Server | |
* @author Dongxu Huang <huangdx@rd.netease.com> | |
* @date 2011-11-18 | |
*/ | |
var port = 8899 // default listen port | |
var createServer = require("http").createServer // createserver function | |
var puts = require("util").puts // output log |
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
/* | |
* @file getword.js | |
* @desc Get Word From Firefox 4+; | |
* @author Dongxu Huang <huangdx@rd.netease.com> | |
* @date 2011-5-13 | |
* | |
*/ | |
var eventRangeParent = null; | |
var eventTarget = null; | |
var eventRangeOffset = null; |
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
SRCS=main.cpp class.cpp | |
INCLUDE= | |
CC=g++ | |
OUTPUT=main | |
FLAG_LINK=-g -lpthread -o $(OUTPUT) | |
FLAG_COMPILE=-g -c | |
OBJS=$(SRCS:.cpp=.o) | |
RM=rm | |
$(OUTPUT):$(OBJS) |
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
CC = gcc | |
CFLAGS = -c -Wall -g -Os | |
LD = $(CC) | |
LDFLAGS = -lfoo | |
TARGET = MyProject | |
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) | |
all: $(TARGET) |
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
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
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
filetype plugin on | |
set hlsearch | |
" Use incremental searching | |
set incsearch | |
" Set standard setting for PEAR coding standards | |
set tabstop=4 | |
set shiftwidth=4 | |
" Auto expand tabs to spaces |
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
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. See the AUTHORS file for names of contributors. | |
#include "leveldb/env.h" | |
namespace leveldb { | |
Env::~Env() { | |
} |
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
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. See the AUTHORS file for names of contributors. | |
#include "leveldb/env.h" | |
namespace leveldb { | |
Env::~Env() { | |
} |