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
'I, [2016-03-19T18:31:17.013853 #13420] INFO -- : 23 failures found in the following test suites: | |
UITests.CM6322_TestCaseTitle | |
UITests.CM7032_YetAnotherTestCaseTitle | |
UITests.CM7296_OneLastTitleForGoodMeasure' |
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 passport = require('passport'); | |
var userInAnyRole = function(user, roles){ | |
'use strict'; | |
if(roles === undefined || roles.length === 0) {return false;} | |
// sorry IE8 | |
// every one of the given roles must appear in the user's roles | |
return roles.some(function(role){ |
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' | |
var gulp = require('gulp'); | |
var zip = require('gulp-zip'); | |
gulp.task('default', function(){ | |
return gulp.src('src/folder-to-zip') | |
.pipe(zip('casper-mod.zip')) | |
.pipe(gulp.dest('dist')); | |
}); |
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
ko.bindingHandlers.sort = { | |
init: function (element, valueAccessor) { | |
var asc = false; | |
ko.utils.registerEventHandler(element, 'click', function (event) { | |
var value = ko.utils.unwrapObservable(valueAccessor()), | |
sortBy = event.target.getAttribute('data-sort-by'), | |
list = value.list, | |
alwaysBy = value.alwaysBy; |
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
[data-effeckt-tooltip-text] { | |
position: relative; | |
} | |
// probably should make various things into variables, like colors | |
.effeckt-tooltip[data-effeckt-tooltip-text] { | |
&::before, &::after { | |
opacity: 0; | |
transition: 0.2s; // no delay on hover off | |
} |
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 mapToArrayOfType(valuesToPush, vm) { | |
if (!valuesToPush || Object.prototype.toString.call(valuesToPush) !== '[object Array]') { | |
return []; | |
}; | |
var vmArray = [], | |
args = []; | |
if (arguments.length > 3) { | |
args = Array.prototype.slice.call(arguments, 3); |