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
'use strict'; | |
const Etcd = require('node-etcd'), | |
P = require('bluebird'), | |
async = P.coroutine, | |
_ = require('lodash'), | |
assert = require('assert'); | |
function keyToPath(key) { | |
return '/' + key.replace(/\./g, '/'); |
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
$ node main.js -h 192.168.59.103 -T 10s | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=5700 timeouts=0 errors=0) read(tps=5695 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=7486 timeouts=0 errors=0) read(tps=7464 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=6740 timeouts=0 errors=0) read(tps=6788 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=7827 timeouts=0 errors=0) read(tps=7820 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=7201 timeouts=0 errors=0) read(tps=7179 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=6062 timeouts=1 errors=0) read(tps=6021 timeouts=3 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=6329 timeouts=0 errors=0) read(tps=6341 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=6244 timeouts=0 errors=0) read(tps=6218 timeouts=0 errors=0) | |
Sun, 26 Jul 2015 23:01:55 GMT write(tps=7128 timeouts=0 errors=0) read(tps=7160 timeouts=0 errors=0) |
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
<html> | |
<head> | |
<title>Micro-API Demo #1</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
jQuery.support.cors = true; | |
function cancel_event_default(e) { | |
if(e.preventDefault) e.preventDefault(); |
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
// FastDelegate.h | |
// Efficient delegates in C++ that generate only two lines of asm code! | |
// Documentation is found at http://www.codeproject.com/cpp/FastDelegate.asp | |
// | |
// - Don Clugston, Mar 2004. | |
// Major contributions were made by Jody Hagins. | |
// History: | |
// 24-Apr-04 1.0 * Submitted to CodeProject. | |
// 28-Apr-04 1.1 * Prevent most unsafe uses of evil static function hack. | |
// * Improved syntax for horrible_cast (thanks Paul Bludov). |
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
#include <tuple> | |
// ... | |
template<typename T, typename C, std::size_t I> | |
struct tuple_index_r; | |
template<typename H, typename ...R, typename C, std::size_t I> | |
struct tuple_index_r<std::tuple<H, R...>, C, I> | |
: public std::conditional<std::is_same<C, H>::value, |
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
test1's content | |
Hello, World! |
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
testsetsetsetset |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="Content-Script-Type" content="text/javascript" /> | |
<meta http-equiv="Content-Style-Type" content="text/css" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=880" /> | |
<link rel="shortcut icon" type="image/x-icon" href="http://img.naver.net/static/www/favicon.ico" /> | |
<title>네이버 :: 나의 경쟁력, 네이버</title> |
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
This is a test. | |
Hello, <%= name %>! | |
<% print(a * b) %> |
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
hello, {{ name }}!?? |
OlderNewer