I hereby claim:
- I am bluesmoon on github.
- I am bluesmoon (https://keybase.io/bluesmoon) on keybase.
- I have a public key ASDj8_i2NS7sgcu7CsOe_zFBFGvFNpbT7WT5VaADDDSreAo
To claim this, I am signing this object:
// Constructor | |
HTML.Template({ | |
tmpl_str: tmpl, | |
OR | |
file_url: foo, | |
file_type: tmpl|js, | |
}); | |
// Setting | |
HTML.Template.param({ |
<TMPL_VAR name="foo" default="bar" escape="html|url|js|none"> |
<?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> |
Datum: x | |
Size: n | |
Mean: m | |
variance = sum((x-m)^2)/n | |
= (x0-m)^2 + (x1-m)^2 + (x2-m)^2 ... | |
---------------------------------- | |
n |
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 |
var fs = require('fs') | |
fs.watch("./", function(event, filename) { console.log(1, event, filename); }); | |
fs.watch("./", function(event, filename) { console.log(2, event, filename); }); | |
fs.watch("./", function(event, filename) { console.log(3, event, filename); }); | |
// You can give this function any name, just use the same name on lines 18 & 22 below | |
function boomerang_loaded_handler(e) { | |
// Older IE stored the event in window.event global | |
if(!e) { e = window.event; } | |
// If there is no event or this is a "propertychange" event and the propertyName is not onBoomerangLoaded, | |
// then abort | |
if(!e || (e.hasOwnProperty("propertyName") && e.propertyName !== "onBoomerangLoaded")) { | |
return; | |
} |
// Support routines for automatically reporting user timing for common analytics platforms | |
// Currently supports Google Analytics, Boomerang and SOASTA mPulse | |
// In the case of boomerang, you will need to map the event names you want reported | |
// to timer names (for mPulse these need to be custom0, custom1, etc) using a global variable: | |
// rumMapping = {'aft': 'custom0'}; | |
(function() { | |
var wtt = function(n, t, b) { | |
t = Math.round(t); | |
if (t >= 0 && t < 3600000) { | |
// Google Analytics |
I hereby claim:
To claim this, I am signing this object: