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
| x = 0.1 | |
| y = 10 | |
| Arithmetic_mean(x, y) = 5.05 | |
| Geometric_mean(x, y) = 1 | |
| Harmonic_mean(x, y) = 0.198019802 | |
| Quadratic_mean(x, y) = 7.071421356 |
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
| Impulse parameters: | |
| Sr: ~5 | |
| St: ~5 | |
| Initial step: 1e-3 | |
| Simple: | |
| 00100 0.010000 1.000000 0.499973642552 0.500000000000 1.000032834871 | |
| Error: 0.000052715 (reference) | |
| With 1 buffer step: |
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 http = require('http'); | |
| var Buffer = require('buffer').Buffer; | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, | |
| {'Content-Type': 'text/html', | |
| 'Content-Length': 0}); | |
| res.end(new Buffer(0), 'binary'); | |
| } | |
| ).listen(3000); |
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 fs = require('fs'), | |
| sys = require('sys'); | |
| function walk(path, callback) { | |
| var recur_or_cb = function( abspath ) { | |
| return function(err, stats) { | |
| if ( stats.isDirectory() ) | |
| walk(abspath, callback); | |
| else | |
| callback(err, abspath); |
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 sys = require("sys"); | |
| var mysql_libmysqlclient = require("mysql-libmysqlclient"); | |
| var conn = mysql_libmysqlclient.createConnection(host, user, password, database); | |
| if (!conn.connected()) { | |
| sys.puts("Connection error: " + conn.connectErrno() + ", " + conn.connectError()); | |
| process.exit(1); | |
| } | |
| var string = conn.escape("Sannis's code"); |
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 | |
| sys = require('sys'), | |
| chunk = "1234567890htcje,stdl", | |
| chunk_length = parseInt(process.ARGV[2]), | |
| count = parseInt(process.ARGV[3]), | |
| i; | |
| function doBenchmark(title, execute_function) { | |
| var | |
| start, |
NewerOlder