1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

updated bunch of file paths and changed the way posts are loaded

This commit is contained in:
2016-01-05 12:28:04 -06:00
parent 4bb8cae81e
commit 6ab45fe935
13249 changed files with 317868 additions and 2101398 deletions

6
node_modules/es5-ext/math/hypot/implement.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
'use strict';
if (!require('./is-implemented')()) {
Object.defineProperty(Math, 'hypot', { value: require('./shim'),
configurable: true, enumerable: false, writable: true });
}

5
node_modules/es5-ext/math/hypot/index.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
'use strict';
module.exports = require('./is-implemented')()
? Math.hypot
: require('./shim');

7
node_modules/es5-ext/math/hypot/is-implemented.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = function () {
var hypot = Math.hypot;
if (typeof hypot !== 'function') return false;
return hypot(3, 4) === 5;
};

34
node_modules/es5-ext/math/hypot/shim.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
// Thanks for hints: https://github.com/paulmillr/es6-shim
'use strict';
var some = Array.prototype.some, abs = Math.abs, sqrt = Math.sqrt
, compare = function (a, b) { return b - a; }
, divide = function (x) { return x / this; }
, add = function (sum, number) { return sum + number * number; };
module.exports = function (val1, val2/*, …valn*/) {
var result, numbers;
if (!arguments.length) return 0;
some.call(arguments, function (val) {
if (isNaN(val)) {
result = NaN;
return;
}
if (!isFinite(val)) {
result = Infinity;
return true;
}
if (result !== undefined) return;
val = Number(val);
if (val === 0) return;
if (!numbers) numbers = [abs(val)];
else numbers.push(abs(val));
});
if (result !== undefined) return result;
if (!numbers) return 0;
numbers.sort(compare);
return numbers[0] * sqrt(numbers.map(divide, numbers[0]).reduce(add, 0));
};