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
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 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
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 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
<?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 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
// Constructor | |
HTML.Template({ | |
tmpl_str: tmpl, | |
OR | |
file_url: foo, | |
file_type: tmpl|js, | |
}); | |
// Setting | |
HTML.Template.param({ |
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
<TMPL_VAR name="foo" default="bar" escape="html|url|js|none"> |
NewerOlder