Skip to content

Instantly share code, notes, and snippets.

this.$jb.Loader._scope().
_require('$jb/$G.Function.js').
_require('$jb/OOP.js').
_require('http.node').
_require('$jb/exceptions.js').
_require('$jb/$jb.Url.js').
_require('$jb/$jb.Net.Base.js').
_willDeclared('$jb/$jb.Net.HTTPClient.js').
_completed(function($G, $jb){
var _abs = Math.abs;
var _floor = Math.floor;
var _rand = Math.random;
_speedTest(
[
function(n)
{
var i = n; while(i--)
var _abs = Math.abs;
_speedTest(
[
function(n)
{
var a = 0;
var i = n; while(i--)
{
// cache from global scope
var _parseInt = this.parseInt;
_speedTest(
[
function(n)
{
var r, g, b, s = '#aabbcc';
var i = n; while(i--)
{
/**
@file
@author Fyodorov "bga" Alexander <[email protected]>
@section LICENSE
Copyright (c) 2009-2010, Fyodorov "Bga" Alexander <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without
window.onunload = function()
{
var _check = function(lbl)
{
var a;
if(window.document && document.body)
a = 'body';
else if(window.document && document.documentElement)
a = 'documentElement';
window._gzip = (function()
{
var _matchCount = function(s, word)
{
var n = 0, wordLen = word.length, p = -wordLen;
while((p = s.indexOf(word, p + wordLen)) > -1)
++n;
return n;
/**
@fn call function with <this> = <that> and <arguments> matched from <argMap> by names
@param that {Any} <this> for function call
@param argMap {Object} map argName -> argValue
@example
var _fn = function(a, b, c)
{
console.log('a = ', a, 'b = ', b, 'с = ', c);
};
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- code has grubbed from http://msdn.microsoft.com/en-us/library/ms532990(VS.85).aspx -->
<html>
<head>
<title></title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<SCRIPT>
/* No regexp. indexOf only */
window._queryToJSON = function(query)
{
if(query == null || query.length < 2)
return {};
var p = 0;
if(query.charAt(p) == '?')
++p;