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
| "use strict"; | |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', | |
| // default font size in pixels for all tabs |
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
| /** | |
| * Converts a Data Studio `dimensionFilters` list to a JQL expression. | |
| * https://developers.google.com/datastudio/connector/filters | |
| * @param {Object[]} filters A Data Studio `dimensionFilters` list | |
| * @returns {string} a JQL expression | |
| */ | |
| function toJqlExpression(filters) { | |
| return `${ | |
| filters.map(andOperand => `( | |
| ${ |
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 max(...args) { | |
| return( | |
| args.length === 0 | |
| ? (_ => { throw new Error('No elements in array') })() | |
| : args.length === 1 | |
| ? args[0] | |
| : ( | |
| function max(current, args) { | |
| return ( | |
| args.length === 0 |
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
| (import (chicken string)) | |
| (import (chicken io)) | |
| (define-record occurrences minimum maximum) | |
| (define-record policy char occurrences) | |
| (define-record password policy text) | |
| (define string->password | |
| (lambda (data) | |
| ((lambda (tokens) |
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 getPassword(data) { | |
| return (tokens => ({ | |
| policy: { | |
| char: tokens[1].replace(':', ''), | |
| occurrences: (occurrencesData => ({ | |
| min: occurrencesData[0], | |
| max: occurrencesData[1] | |
| }))(tokens[0].split('-')) | |
| }, | |
| text: tokens[2] |