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
.custom-highlighter{ | |
background-color:#de7cd2 | |
} |
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
var obj = require('./json.json'); | |
var counter = 0; | |
var result = []; | |
for(var x = 0; x < obj.Data.length;x++){ | |
var valueContainer = []; | |
for(var i = 0; i < obj.Data.length;i++){ | |
try{ |
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
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | |
<script> | |
var arr= [ 0.353846153846154, | |
5.161538517115385, | |
9.988461761538462, | |
10.071154080769231, | |
10.078846376923078, | |
10.842307815384613, | |
18.150000269230773, |
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
(function() { | |
'use strict'; | |
/* | |
Config | |
*/ | |
const timeFormat = 'YYYYMMDD/HH:mm:ss' | |
const pollingTime = 1000; //ms | |
const fingerprinting = "uid"; | |
const scanWebElements = false; | |
const logCoords = true; |
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 = { | |
spearman: function (values,x,y) { | |
var sum = 0; | |
var orderedList = []; | |
var length = values[x].length; | |
// for every point in | |
for(i=0;i<length;i++){ | |
orderedList.push([values[x][i], values[y][i]]); | |
} |
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 = { | |
templateFunction1: function (_para) { | |
console.log(_para); | |
}, | |
templateFunction2: function (_para) { | |
var temp = _para + _para; | |
return temp | |
}, | |
}; |
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
/* | |
* RobotJS supporter functions for end2end testing | |
* see specs/_tests/robotModule/robotModuleTest.js for unit tests | |
* ************* REQUIRES WINDOW FOCUS ************* | |
* typeString - Function for simulating a set of/or single keyboard strokes | |
* - Example: typeString("Hello World"); //\\ typeString("A"); //\\ typeString("123"); | |
* pressTab - Simulates an Tab Arrow button tap |
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
var _timerModule = angular.module("_timerModule", []); | |
_timerModule.factory('timerModule', function() { | |
return { | |
startTimer: function(durationTimeInSeconds, callback) { | |
var timer = durationTimeInSeconds, minutes, seconds; | |
var timeInterval = setInterval(function () { | |
/* | |
* Thanks to http://stackoverflow.com/users/2126755/robbmj for the formatting of time and the idea of a datetime'less timer | |
*/ |