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
crypto=require("crypto"); | |
assert=require("assert"); | |
data = [ | |
// 0. Short key, short data, ascii data, hex output | |
{ k: "abcde", d: "foobar", enc_in: "ascii", enc_out: "hex" }, | |
// 1. Long key, short data, ascii data, hex output | |
{ k: "abcdefabcdefabcdeabcdefabcdefabcdeabcdefabcdefabcdeabcdefabcdefabcdef", d: "foobar", enc_in: "ascii", enc_out: "hex" }, | |
// 2. Long key, long data, ascii data, hex output |
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
Datum: x | |
Size: n | |
Mean: m | |
variance = sum((x-m)^2)/n | |
= (x0-m)^2 + (x1-m)^2 + (x2-m)^2 ... | |
---------------------------------- | |
n |
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
<?php | |
$t_serverstart = microtime(true); | |
// rest of page generation goes in here | |
$t_serverend = microtime(true); | |
?> | |
<script type="text/javascript"> | |
BOOMR.plugins.RT.setTimer("t_pagegen", <?php echo $t_serverend - $t_serverstart; ?>); | |
</script> |
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
<TMPL_VAR name="foo" default="bar" escape="html|url|js|none"> |
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
// Constructor | |
HTML.Template({ | |
tmpl_str: tmpl, | |
OR | |
file_url: foo, | |
file_type: tmpl|js, | |
}); | |
// Setting | |
HTML.Template.param({ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder