This file contains hidden or 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
| /* eslint-env node, es6 */ | |
| 'use strict'; | |
| /* @param {object|string} _logger - an instance of Log4js/object with a `log` method. If a string, should be a category (see Log4js.getLogger(category)). | |
| @example | |
| logger = require('logger').getLogger( gutil ); | |
| */ |
This file contains hidden or 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
| module.exports = Base; | |
| function Base(category) { | |
| try { | |
| category = category || new Error().stack.match(/Base\.(\w+)/)[1]; | |
| } | |
| finally { | |
| if (!category) { | |
| throw new Error('Base requires its sub-class to supply a logging-category argument! '); | |
| } | |
| } |
This file contains hidden or 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
| %YAML1.2 | |
| --- | |
| # See http://www.sublimetext.com/docs/3/syntax.html | |
| file_extensions: | |
| - feature | |
| scope: source.feature | |
| contexts: | |
| main: | |
| - match: '"' | |
| scope: punctuation.definition.string.begin.feature |
This file contains hidden or 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
| jasmine.addMatchers( jasmine.XXX.customMatchers ); | |
| // This must load before any tests are run. | |
| jasmine.XXX.customMatchers = { | |
| toEqualNice: function(util, customEqualityTesters) { | |
| return { | |
| compare: function(actual, expected) { | |
| if (expected === undefined) { | |
| expected = ''; | |
| } |
This file contains hidden or 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
| beforeEach( module('thinMonitor') ); | |
| beforeEach( inject( function ($injector, $rootScope) { | |
| rootScope = $rootScope; | |
| scope = $rootScope.$new(); | |
| scope.grid = MOCKS.grid; | |
| controller = $injector.get('$controller')('templateDialogController', { | |
| $rootScope : $rootScope, | |
| $scope : scope, | |
| dialogInstance : MOCKS.dialogInstance, |
This file contains hidden or 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
| // https://en.wikipedia.org/wiki/Hue#Computing_hue_from_RGB | |
| else if ((r >= g) && (g >= b)) { | |
| rvXy[x][y] = 60 * ( (g-b) / (r-b) ); | |
| } | |
| else if ((g > r) && (r >= b)) { | |
| rvXy[x][y] = 60 * (2 - ( (r-b) / (g-b) )); | |
| } | |
| else if ((g >= b) && (g > r)) { | |
| rvXy[x][y] = 60 * (2 + ( (b-r) / (g-r) )); | |
| } |
This file contains hidden or 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
| /** Vertically scrolling slide show, cf Valentino | |
| <script src='js/scroll2next.js'></script> | |
| <script> | |
| jQuery(document).ready( function () { | |
| document.body.scrollTop = document.documentElement.scrollTop = 0; | |
| new Scroll2Next({ | |
| container: '#container', | |
| selector: 'img' | |
| }); | |
| }); |
This file contains hidden or 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
| # set -o verbose | |
| # set -x | |
| export ES_HOST=localhost:9200 | |
| export INDEX_NAME="people" | |
| export SUGGEST_INDEX_NAME="suggestions" | |
| export DELETE="curl -XDELETE $ES_HOST" | |
| export POST="curl -XPOST $ES_HOST" | |
| export PUT="curl -XPUT $ES_HOST" | |
| export GET="curl -XGET $ES_HOST" |
This file contains hidden or 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
| // AMD stub? | |
| var define = define || function (deps,module){ return module } | |
| define([], function () { | |
| /** | |
| Apache autoindex to hash | |
| @param {string} uri - uri of `mod_autoindex` directory or similar HTML page | |
| @param {RegExp} re - hyperlinks for files to select from directory listing | |
| @param {function} [next] - optional callback | |
| @param {function} [error] - optional callback |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Mocha Test Suite Runner</title> | |
| <link rel="stylesheet" media="all" href="vendor/mocha/mocha.css"> | |
| <script src='../vendor/require.js'></script> | |
| <script> | |
| /** Needed to run the tests */ |