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
//var child = process.createChildProcess('sh', | |
// ['-c', 'echo hello; sleep 1; echo world;']); | |
//child.addListener('data', function(chunk) { | |
// console.log(chunk); | |
//}); | |
var spawn = require('child_process').spawn, | |
child = spawn('sh', ['-c', 'echo hello; sleep 1; echo world;']); | |
child.stdout.on('data', function(chunk) { |
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
var https = require('https'); | |
var user = { | |
name : "", | |
password : "", | |
token : 'd0be5f82-44c8-4686-aa13-c58e8ee910b7' | |
}; | |
var options = { | |
host : 'tpoitgf8i.tpolab.com', |
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
(function() { | |
})(); |
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
set JAVA_OPTS="-Xmx2g" | |
scala scc.scala | |
#for powershell | |
$env:JAVA_OPTS="-Xmx2g" | |
scala .\scc.scala |
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
var decrypt = function(text, key) { | |
var src = "abcdefghijklmnopqrstuvwxyz"; | |
var cipher = {}; | |
for(var i=0 ; i<26; i++) { | |
cipher[src[(i+key) % 26]] = src[i]; | |
} | |
//console.log(cipher); |
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
var vigenere = function() { | |
function pos(s) { | |
return s.toLowerCase().charCodeAt(0) - "a".charCodeAt(0); | |
}; | |
function encryptOneChar(c, key) { | |
var src = "abcdefghijklmnopqrstuvwxyz", | |
cipher = {}; | |
for(var i=0; i<src.length; i++) { | |
cipher[src[i]] = src[(i+key) % 26]; |
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
# Ubuntu upstart file at /etc/init/mongodb.conf | |
pre-start script | |
mkdir -p /var/lib/mongodb/ | |
mkdir -p /var/log/mongodb/ | |
end script | |
start on runlevel [2345] | |
stop on runlevel [06] |
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
description "Start serviio DLNA server" | |
author "aanno" | |
start on net-device-up IFACE=eth0 | |
stop on runlevel [!2345] | |
env enabled=1 | |
setuid tpasch | |
setgid tpasch |
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
class Customer { | |
String name | |
} | |
def locked (Closure c) { | |
println "Transaction lock" | |
transactionLock() | |
c.call() | |
transactionRelease(); | |
println "Transaction release" |
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
p4 populate -o //global_online/ebisu/cq5/main/origin-cq5-components/...@352924 //global_online/ebisu/cq5/branches/chromium/origin-cq5-components/... |
OlderNewer