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
test desu |
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 benchmark = module.exports = function(f, timeout){ | |
var i = 0; | |
var deadline = process.uptime() + timeout; | |
while(1){ | |
if(process.uptime() >= deadline){ | |
break; | |
} | |
f(); | |
++i; | |
} |
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 sCmd="C:\\Program Files\\7-Zip\\7z.exe"; | |
var sOpt="a -tzip -mx=9 -mfb=32 -mmt=3 -r"; | |
// ----------------------------------------------- | |
function PathQuating(str){ | |
return "\""+str+"\""; | |
} | |
function main(){ |
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
#!/bin/bash | |
# powersaver | |
add-apt-repository ppa:webupd8team/jupiter | |
# vaapi environment | |
add-apt-repository ppa:xorg-edgers/ppa | |
# vaapi mplayer | |
add-apt-repository ppa:sander-vangrieken/vaapi |
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 |
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
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 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
"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 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; |
OlderNewer