This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mongodb-org-3.4] | |
name=MongoDB Repository | |
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var utils = { | |
lists: { | |
firstOf: function firstOf(collection) { | |
var keys = Object.keys(collection); | |
return keys.length > 0 ? collection[keys[0]] : undefined; | |
}, | |
valueForKey: function valueForKey(collection, key) { | |
return collection[key]; | |
}, | |
valueForPath: function valueForPath(collection, pathOrKey) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global _, google */ | |
(function amdWeb(root, factory) { | |
/* eslint-disable */ | |
if (typeof define == 'function' && define.amd) { | |
define(['lodash', 'googlemaps!'], factory); | |
/* eslint-enable */ | |
} else { | |
root.TextOverlay = factory(_, (google || {}).maps); | |
} | |
}(this, function factory(_, gmaps) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var regTrim = = /^\s+|\s+$/g; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qsShallowObject(qs) { | |
var string = qs.indexOf('?') == 0 ? qs.slice(1) : qs.slice(); | |
return (string.split('&') | |
.map(function (qsEl) { | |
return qsEl.split('=').map(decodeURIComponent); | |
}) | |
.reduce(function (query, keyValue) { | |
query[keyValue[0]] = keyValue[1]; | |
return query; | |
}, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assumes $ and $$ are aliased to document.querySelector and document.querySelectorAll in the given environment. | |
$$('[name=t]').reduce(function (d, el) { el.checked = tr; return d; }, $('input[value=Delete]')).click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given 'layout.ejs' in your view folder, use `res.yield` like you would `res.render`. | |
// Override what layout to use by supplying a second string parameter right after the view. | |
// Layouts are passed `yield` as a local; in ejs, example usage: `<%- yield %>`. | |
// | |
// TODO: clean-up argument coercion | |
// TODO: better/cleaner documentation for usage of `yield`. | |
// TODO: extract functionality into a middleware-generating module to supply e.g. a default layout. | |
// TODO: (possibly) turn the layout's `yield` into a function to support nested yields. | |
app.use(function (req, res, next) { | |
// default layout? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Iterates over `list`, executing `callback` with each element in the collection. | |
* @requires nothing? | |
* | |
* Designed for array-like objects that are not iterable. | |
* @see https://dom.spec.whatwg.org/#old-style-collections | |
* | |
* Due to some versions of Internet Explorer, if `list.item` is defined, it will be treated as a | |
* function and used rather than integer subscripting. This behavior can be overriden via `useItem`. | |
* @see http://stackoverflow.com/a/10740835 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example usage; adds `#menu.hidden { left: -currentValue; }` to <head> in a <script>. | |
var sel = '#menu'; | |
var source = { selector: sel, prop: 'width' }; | |
var mapWidth = (function (value) { return "-" + value; }); | |
var destination = { selector: sel + '.hidden', prop: 'left', mapping: mapWidth }; | |
var injector = new CSSInjector('menu-css', source, [destination]); | |
injector.inject('head'); | |
*/ | |
(function ($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function inherits(ctor, superCtor) { | |
ctor.superClass_ = ctor.super_ = superCtor; | |
ctor.prototype = Object.create(superCtor.prototype, { | |
constructor: { | |
value: ctor, | |
enumerable: false, | |
writable: true, | |
configurable: true, |