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
/** | |
* file read line | |
*/ | |
"use strict"; | |
var fs = require("fs"); | |
/** | |
* node.js 0.8 or 0.10 setting | |
*/ | |
var _setImmediate = (function(){ |
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
DEVICE=br0 | |
TYPE=Bridge | |
BOOTPROTO=none | |
ONBOOT=yes | |
DELAY=0 | |
STP=off |
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
apt-get install gcc g++ make | |
apt-get install llvm-gcc clang | |
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
おうちの環境 | |
wifi bridge WHR-G301N dd-wrt | |
router fitelnet-f100 | |
basehub Dell PowerConnect 2816 |
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 createLimitter = function(max, reset_sec){ | |
var reset_time = process.uptime() + reset_sec; | |
var count = 0; | |
return function(){ | |
if(process.uptime() >= reset_time){ | |
reset_time = process.uptime() + reset_sec; | |
count = 0; | |
} | |
if(count >= max){ | |
return false; |
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
"use strict"; | |
var mysql = require('mysql'); | |
var mysqlConfig = { | |
host : "127.0.0.1", | |
port : 3306, | |
user : "root", | |
password : "", | |
database : "test", | |
debug : false, |
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 mysql = require('mysql'); | |
var DefaultEvent = { | |
onConnected : function(){ | |
console.log('MYSQL[%s] connected', this.conf.host); | |
}, | |
onClosed : function(reason){ | |
console.log('MYSQL[%s] closed reason: %s', this.conf.host, reason); | |
}, | |
onError : function(err){ | |
console.log(err.stack); |
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
ubuntu linux向けメタトレーダーインストール方法 | |
========================================= | |
事前準備 | |
------- | |
apt-get install wine | |
ダウンロード | |
---------- | |
http://www.metatrader5.com/ |
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 SchedPipeline = exports.SchedPipeline = function(){ | |
this.q = []; | |
this.runflag = false; | |
} | |
SchedPipeline.prototype = { | |
run : function(){ | |
this.runflag = true; | |
var self = this; | |
process.nextTick(function T(){ | |
if(self.runflag){ |
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/lib/nux/unity_support_test -p | |
OpenGL vendor string: Intel Open Source Technology Center | |
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile | |
OpenGL version string: 3.0 Mesa 9.0.2 | |
Not software rendered: yes | |
Not blacklisted: yes | |
GLX fbconfig: yes | |
GLX texture from pixmap: yes | |
GL npot or rect textures: yes |