Add license headers
This commit is contained in:
parent
e021430b3a
commit
22085d0531
20 changed files with 80 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.arrays = {
|
make.arrays = {
|
||||||
filledArray: function (fn, limit) {
|
filledArray: function (fn, limit) {
|
||||||
let array = [];
|
let array = [];
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.colors = {
|
make.colors = {
|
||||||
colors: function () {
|
colors: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.files = {
|
make.files = {
|
||||||
image: function () {
|
image: function () {
|
||||||
return utils.quote(random.pick([
|
return utils.quote(random.pick([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.fonts = {
|
make.fonts = {
|
||||||
fontStyles: function () {
|
fontStyles: function () {
|
||||||
return ["italic", "normal", "oblique", "inherit"];
|
return ["italic", "normal", "oblique", "inherit"];
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.mime = {
|
make.mime = {
|
||||||
type: function () {
|
type: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.network = {
|
make.network = {
|
||||||
sdp: function () {
|
sdp: function () {
|
||||||
// session description protocol template
|
// session description protocol template
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.numbers = {
|
make.numbers = {
|
||||||
bool: function () {
|
bool: function () {
|
||||||
return random.bool();
|
return random.bool();
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.shaders = {
|
make.shaders = {
|
||||||
fragment1: function () {
|
fragment1: function () {
|
||||||
return [
|
return [
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.strings = {
|
make.strings = {
|
||||||
toString: function (object) {
|
toString: function (object) {
|
||||||
return object ? object.toSource() : '' + object
|
return object ? object.toSource() : '' + object
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.text = {
|
make.text = {
|
||||||
lineEnd: function () {
|
lineEnd: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.types = {
|
make.types = {
|
||||||
random: function () {
|
random: function () {
|
||||||
return random.item([
|
return random.item([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.units = {
|
make.units = {
|
||||||
lengthUnit: function () {
|
lengthUnit: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
var random = {
|
var random = {
|
||||||
twister: null,
|
twister: null,
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
QUnit.test("MersenneTwister test uniform distribution", function(assert) {
|
QUnit.test("MersenneTwister test uniform distribution", function(assert) {
|
||||||
const N = Math.pow(2, 17), TRIES = 10, XSQ = 293.25; // quantile of chi-square dist. k=255, p=.05
|
const N = Math.pow(2, 17), TRIES = 10, XSQ = 293.25; // quantile of chi-square dist. k=255, p=.05
|
||||||
let mt = new MersenneTwister();
|
let mt = new MersenneTwister();
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
QUnit.test("random.init() is required", function(assert) {
|
QUnit.test("random.init() is required", function(assert) {
|
||||||
assert.throws(random.number, /undefined/, "twister should be uninitialized before random.init()");
|
assert.throws(random.number, /undefined/, "twister should be uninitialized before random.init()");
|
||||||
random.init(1);
|
random.init(1);
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
utils.block = {
|
utils.block = {
|
||||||
block: function (list, optional) {
|
block: function (list, optional) {
|
||||||
if (optional == true) {
|
if (optional == true) {
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
utils.common = {
|
utils.common = {
|
||||||
objToString: function (obj) {
|
objToString: function (obj) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
utils.platform = {
|
utils.platform = {
|
||||||
platform: function () {
|
platform: function () {
|
||||||
var version, webkitVersion, platform = {};
|
var version, webkitVersion, platform = {};
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
utils.script = {
|
utils.script = {
|
||||||
methodHead: function (list, numOptional) {
|
methodHead: function (list, numOptional) {
|
||||||
if (isNaN(numOptional)) {
|
if (isNaN(numOptional)) {
|
||||||
|
|
Loading…
Reference in a new issue