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

2
node_modules/sliced/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,2 @@
*.sw*
node_modules/

4
node_modules/sliced/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.6
- 0.8

30
node_modules/sliced/History.md generated vendored Normal file
View File

@@ -0,0 +1,30 @@
0.0.5 / 2013-02-05
==================
* optimization: remove use of arguments [jkroso](https://github.com/jkroso)
* add scripts to component.json [jkroso](https://github.com/jkroso)
* tests; remove time for travis
0.0.4 / 2013-01-07
==================
* added component.json #1 [jkroso](https://github.com/jkroso)
* reversed array loop #1 [jkroso](https://github.com/jkroso)
* remove fn params
0.0.3 / 2012-09-29
==================
* faster with negative start args
0.0.2 / 2012-09-29
==================
* support full [].slice semantics
0.0.1 / 2012-09-29
===================
* initial release

22
node_modules/sliced/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

5
node_modules/sliced/Makefile generated vendored Normal file
View File

@@ -0,0 +1,5 @@
test:
@./node_modules/.bin/mocha $(T) $(TESTS)
.PHONY: test

62
node_modules/sliced/README.md generated vendored Normal file
View File

@@ -0,0 +1,62 @@
#sliced
==========
A faster alternative to `[].slice.call(arguments)`.
[![Build Status](https://secure.travis-ci.org/aheckmann/sliced.png)](http://travis-ci.org/aheckmann/sliced)
Example output from [benchmark.js](https://github.com/bestiejs/benchmark.js)
Array.prototype.slice.call x 1,320,205 ops/sec ±2.35% (92 runs sampled)
[].slice.call x 1,314,605 ops/sec ±1.60% (95 runs sampled)
cached slice.call x 10,468,380 ops/sec ±1.45% (95 runs sampled)
sliced x 16,608,237 ops/sec ±1.40% (92 runs sampled)
fastest is sliced
Array.prototype.slice.call(arguments, 1) x 1,383,584 ops/sec ±1.73% (97 runs sampled)
[].slice.call(arguments, 1) x 1,494,735 ops/sec ±1.33% (95 runs sampled)
cached slice.call(arguments, 1) x 10,085,270 ops/sec ±1.51% (97 runs sampled)
sliced(arguments, 1) x 16,620,480 ops/sec ±1.29% (95 runs sampled)
fastest is sliced(arguments, 1)
Array.prototype.slice.call(arguments, -1) x 1,303,262 ops/sec ±1.62% (94 runs sampled)
[].slice.call(arguments, -1) x 1,325,615 ops/sec ±1.36% (97 runs sampled)
cached slice.call(arguments, -1) x 9,673,603 ops/sec ±1.70% (96 runs sampled)
sliced(arguments, -1) x 16,384,575 ops/sec ±1.06% (91 runs sampled)
fastest is sliced(arguments, -1)
Array.prototype.slice.call(arguments, -2, -10) x 1,404,390 ops/sec ±1.61% (95 runs sampled)
[].slice.call(arguments, -2, -10) x 1,514,367 ops/sec ±1.21% (96 runs sampled)
cached slice.call(arguments, -2, -10) x 9,836,017 ops/sec ±1.21% (95 runs sampled)
sliced(arguments, -2, -10) x 18,544,882 ops/sec ±1.30% (91 runs sampled)
fastest is sliced(arguments, -2, -10)
Array.prototype.slice.call(arguments, -2, -1) x 1,458,604 ops/sec ±1.41% (97 runs sampled)
[].slice.call(arguments, -2, -1) x 1,536,547 ops/sec ±1.63% (99 runs sampled)
cached slice.call(arguments, -2, -1) x 10,060,633 ops/sec ±1.37% (96 runs sampled)
sliced(arguments, -2, -1) x 18,608,712 ops/sec ±1.08% (93 runs sampled)
fastest is sliced(arguments, -2, -1)
_Benchmark [source](https://github.com/aheckmann/sliced/blob/master/bench.js)._
##Usage
`sliced` accepts the same arguments as `Array#slice` so you can easily swap it out.
```js
function zing () {
var slow = [].slice.call(arguments, 1, 8);
var args = slice(arguments, 1, 8);
var slow = Array.prototype.slice.call(arguments);
var args = slice(arguments);
// etc
}
```
## install
npm install sliced
[LICENSE](https://github.com/aheckmann/sliced/blob/master/LICENSE)

95
node_modules/sliced/bench.js generated vendored Normal file
View File

@@ -0,0 +1,95 @@
var sliced = require('./')
var Bench = require('benchmark');
var s = new Bench.Suite;
var slice = [].slice;
s.add('Array.prototype.slice.call', function () {
Array.prototype.slice.call(arguments);
}).add('[].slice.call', function () {
[].slice.call(arguments);
}).add('cached slice.call', function () {
slice.call(arguments)
}).add('sliced', function () {
sliced(arguments)
}).on('cycle', function (evt) {
console.log(String(evt.target));
}).on('complete', function () {
console.log('fastest is %s', this.filter('fastest').pluck('name'));
})
.run();
var s = new Bench.Suite;
s.add('Array.prototype.slice.call(arguments, 1)', function () {
Array.prototype.slice.call(arguments, 1);
}).add('[].slice.call(arguments, 1)', function () {
[].slice.call(arguments, 1);
}).add('cached slice.call(arguments, 1)', function () {
slice.call(arguments, 1)
}).add('sliced(arguments, 1)', function () {
sliced(arguments, 1)
}).on('cycle', function (evt) {
console.log(String(evt.target));
}).on('complete', function () {
console.log('fastest is %s', this.filter('fastest').pluck('name'));
})
.run();
var s = new Bench.Suite;
s.add('Array.prototype.slice.call(arguments, -1)', function () {
Array.prototype.slice.call(arguments, -1);
}).add('[].slice.call(arguments, -1)', function () {
[].slice.call(arguments, -1);
}).add('cached slice.call(arguments, -1)', function () {
slice.call(arguments, -1)
}).add('sliced(arguments, -1)', function () {
sliced(arguments, -1)
}).on('cycle', function (evt) {
console.log(String(evt.target));
}).on('complete', function () {
console.log('fastest is %s', this.filter('fastest').pluck('name'));
})
.run();
var s = new Bench.Suite;
s.add('Array.prototype.slice.call(arguments, -2, -10)', function () {
Array.prototype.slice.call(arguments, -2, -10);
}).add('[].slice.call(arguments, -2, -10)', function () {
[].slice.call(arguments, -2, -10);
}).add('cached slice.call(arguments, -2, -10)', function () {
slice.call(arguments, -2, -10)
}).add('sliced(arguments, -2, -10)', function () {
sliced(arguments, -2, -10)
}).on('cycle', function (evt) {
console.log(String(evt.target));
}).on('complete', function () {
console.log('fastest is %s', this.filter('fastest').pluck('name'));
})
.run();
var s = new Bench.Suite;
s.add('Array.prototype.slice.call(arguments, -2, -1)', function () {
Array.prototype.slice.call(arguments, -2, -1);
}).add('[].slice.call(arguments, -2, -1)', function () {
[].slice.call(arguments, -2, -1);
}).add('cached slice.call(arguments, -2, -1)', function () {
slice.call(arguments, -2, -1)
}).add('sliced(arguments, -2, -1)', function () {
sliced(arguments, -2, -1)
}).on('cycle', function (evt) {
console.log(String(evt.target));
}).on('complete', function () {
console.log('fastest is %s', this.filter('fastest').pluck('name'));
})
.run();
/**
* Output:
*
* Array.prototype.slice.call x 1,289,592 ops/sec ±2.88% (87 runs sampled)
* [].slice.call x 1,345,451 ops/sec ±1.68% (97 runs sampled)
* cached slice.call x 10,719,886 ops/sec ±1.04% (99 runs sampled)
* sliced x 15,809,545 ops/sec ±1.46% (93 runs sampled)
* fastest is sliced
*
*/

14
node_modules/sliced/component.json generated vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "sliced",
"version": "0.0.5",
"description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)",
"repo" : "aheckmann/sliced",
"keywords": [
"arguments",
"slice",
"array"
],
"scripts": ["lib/sliced.js", "index.js"],
"author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>",
"license": "MIT"
}

1
node_modules/sliced/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = exports = require('./lib/sliced');

33
node_modules/sliced/lib/sliced.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
/**
* An Array.prototype.slice.call(arguments) alternative
*
* @param {Object} args something with a length
* @param {Number} slice
* @param {Number} sliceEnd
* @api public
*/
module.exports = function (args, slice, sliceEnd) {
var ret = [];
var len = args.length;
if (0 === len) return ret;
var start = slice < 0
? Math.max(0, slice + len)
: slice || 0;
if (sliceEnd !== undefined) {
len = sliceEnd < 0
? sliceEnd + len
: sliceEnd
}
while (len-- > start) {
ret[len - start] = args[len];
}
return ret;
}

79
node_modules/sliced/package.json generated vendored Normal file
View File

@@ -0,0 +1,79 @@
{
"_args": [
[
"sliced@0.0.5",
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/mongoose"
]
],
"_from": "sliced@0.0.5",
"_id": "sliced@0.0.5",
"_inCache": true,
"_installable": true,
"_location": "/sliced",
"_npmUser": {
"email": "aaron.heckmann+github@gmail.com",
"name": "aaron"
},
"_npmVersion": "1.1.59",
"_phantomChildren": {},
"_requested": {
"name": "sliced",
"raw": "sliced@0.0.5",
"rawSpec": "0.0.5",
"scope": null,
"spec": "0.0.5",
"type": "version"
},
"_requiredBy": [
"/mongoose",
"/mquery"
],
"_resolved": "https://registry.npmjs.org/sliced/-/sliced-0.0.5.tgz",
"_shasum": "5edc044ca4eb6f7816d50ba2fc63e25d8fe4707f",
"_shrinkwrap": null,
"_spec": "sliced@0.0.5",
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/mongoose",
"author": {
"email": "aaron.heckmann+github@gmail.com",
"name": "Aaron Heckmann"
},
"bugs": {
"url": "https://github.com/aheckmann/sliced/issues"
},
"dependencies": {},
"description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)",
"devDependencies": {
"benchmark": "~1.0.0",
"mocha": "1.5.0"
},
"directories": {},
"dist": {
"shasum": "5edc044ca4eb6f7816d50ba2fc63e25d8fe4707f",
"tarball": "http://registry.npmjs.org/sliced/-/sliced-0.0.5.tgz"
},
"homepage": "https://github.com/aheckmann/sliced#readme",
"keywords": [
"arguments",
"array",
"slice"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "aaron",
"email": "aaron.heckmann+github@gmail.com"
}
],
"name": "sliced",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/aheckmann/sliced.git"
},
"scripts": {
"test": "make test"
},
"version": "0.0.5"
}

80
node_modules/sliced/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,80 @@
var sliced = require('../')
var assert = require('assert')
describe('sliced', function(){
it('exports a function', function(){
assert.equal('function', typeof sliced);
})
describe('with 1 arg', function(){
it('returns an array of the arg', function(){
var o = [3, "4", {}];
var r = sliced(o);
assert.equal(3, r.length);
assert.equal(o[0], r[0]);
assert.equal(o[1], r[1]);
assert.equal(o[1], r[1]);
})
})
describe('with 2 args', function(){
it('returns an array of the arg starting at the 2nd arg', function(){
var o = [3, "4", 5, null];
var r = sliced(o, 2);
assert.equal(2, r.length);
assert.equal(o[2], r[0]);
assert.equal(o[3], r[1]);
})
})
describe('with 3 args', function(){
it('returns an array of the arg from the 2nd to the 3rd arg', function(){
var o = [3, "4", 5, null];
var r = sliced(o, 1, 2);
assert.equal(1, r.length);
assert.equal(o[1], r[0]);
})
})
describe('with negative start and no end', function(){
it('begins at an offset from the end and includes all following elements', function(){
var o = [3, "4", 5, null];
var r = sliced(o, -2);
assert.equal(2, r.length);
assert.equal(o[2], r[0]);
assert.equal(o[3], r[1]);
var r = sliced(o, -12);
assert.equal(4, r.length);
assert.equal(o[0], r[0]);
assert.equal(o[1], r[1]);
})
})
describe('with negative start and positive end', function(){
it('begins at an offset from the end and includes `end` elements', function(){
var o = [3, "4", {x:1}, null];
var r = sliced(o, -2, 1);
assert.equal(0, r.length);
var r = sliced(o, -2, 2);
assert.equal(0, r.length);
var r = sliced(o, -2, 3);
assert.equal(1, r.length);
assert.equal(o[2], r[0]);
})
})
describe('with negative start and negative end', function(){
it('begins at `start` offset from the end and includes all elements up to `end` offset from the end', function(){
var o = [3, "4", {x:1}, null];
var r = sliced(o, -3, -1);
assert.equal(2, r.length);
assert.equal(o[1], r[0]);
assert.equal(o[2], r[1]);
var r = sliced(o, -3, -3);
assert.equal(0, r.length);
var r = sliced(o, -3, -4);
assert.equal(0, r.length);
})
})
})