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 <[email protected]> | |
* @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 <[email protected]> | |
* @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
#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
// 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() { | |
} |
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
# A sample Makefile for building Google Test and using it in user | |
# tests. Please tweak it to suit your environment and project. You | |
# may want to move it to your project's root directory. | |
# | |
# SYNOPSIS: | |
# | |
# make [all] - makes everything. | |
# make TARGET - makes the given target. | |
# make clean - removes all files generated by make. |
OlderNewer