1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 18:52:50 +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

20
node_modules/es5-ext/function/#/compose.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
var callable = require('../../object/valid-callable')
, aFrom = require('../../array/from')
, apply = Function.prototype.apply, call = Function.prototype.call
, callFn = function (arg, fn) { return call.call(fn, this, arg); };
module.exports = function (fn/*, …fnn*/) {
var fns, first;
if (!fn) callable(fn);
fns = [this].concat(aFrom(arguments));
fns.forEach(callable);
fns = fns.reverse();
first = fns[0];
fns = fns.slice(1);
return function (arg) {
return fns.reduce(callFn, apply.call(first, this, arguments));
};
};

15
node_modules/es5-ext/function/#/copy.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
var mixin = require('../../object/mixin')
, validFunction = require('../valid-function')
, re = /^\s*function\s*([\0-'\)-\uffff]+)*\s*\(([\0-\(\*-\uffff]*)\)\s*\{/;
module.exports = function () {
var match = String(validFunction(this)).match(re), fn;
fn = new Function('fn', 'return function ' + match[1].trim() + '(' +
match[2] + ') { return fn.apply(this, arguments); };')(this);
try { mixin(fn, this); } catch (ignore) {}
return fn;
};

24
node_modules/es5-ext/function/#/curry.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
'use strict';
var toPosInt = require('../../number/to-pos-integer')
, callable = require('../../object/valid-callable')
, defineLength = require('../_define-length')
, slice = Array.prototype.slice, apply = Function.prototype.apply
, curry;
curry = function self(fn, length, preArgs) {
return defineLength(function () {
var args = preArgs ?
preArgs.concat(slice.call(arguments, 0, length - preArgs.length)) :
slice.call(arguments, 0, length);
return (args.length === length) ? apply.call(fn, this, args) :
self(fn, length, args);
}, preArgs ? (length - preArgs.length) : length);
};
module.exports = function (/*length*/) {
var length = arguments[0];
return curry(callable(this),
isNaN(length) ? toPosInt(this.length) : toPosInt(length));
};

12
node_modules/es5-ext/function/#/index.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = {
compose: require('./compose'),
copy: require('./copy'),
curry: require('./curry'),
lock: require('./lock'),
not: require('./not'),
partial: require('./partial'),
spread: require('./spread'),
toStringTokens: require('./to-string-tokens')
};

12
node_modules/es5-ext/function/#/lock.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
var callable = require('../../object/valid-callable')
, apply = Function.prototype.apply;
module.exports = function (/*…args*/) {
var fn = callable(this)
, args = arguments;
return function () { return apply.call(fn, this, args); };
};

14
node_modules/es5-ext/function/#/not.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
'use strict';
var callable = require('../../object/valid-callable')
, defineLength = require('../_define-length')
, apply = Function.prototype.apply;
module.exports = function () {
var fn = callable(this);
return defineLength(function () {
return !apply.call(fn, this, arguments);
}, fn.length);
};

16
node_modules/es5-ext/function/#/partial.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
var callable = require('../../object/valid-callable')
, aFrom = require('../../array/from')
, defineLength = require('../_define-length')
, apply = Function.prototype.apply;
module.exports = function (/*…args*/) {
var fn = callable(this)
, args = aFrom(arguments);
return defineLength(function () {
return apply.call(fn, this, args.concat(aFrom(arguments)));
}, fn.length - args.length);
};

10
node_modules/es5-ext/function/#/spread.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
'use strict';
var callable = require('../../object/valid-callable')
, apply = Function.prototype.apply;
module.exports = function () {
var fn = callable(this);
return function (args) { return apply.call(fn, this, args); };
};

11
node_modules/es5-ext/function/#/to-string-tokens.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
var validFunction = require('../valid-function')
, re = new RegExp('^\\s*function[\\0-\'\\)-\\uffff]*' +
'\\(([\\0-\\(\\*-\\uffff]*)\\)\\s*\\{([\\0-\\uffff]*)\\}\\s*$');
module.exports = function () {
var data = String(validFunction(this)).match(re);
return { args: data[1], body: data[2] };
};