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
| // ==UserScript== | |
| // @name Download all | |
| // @namespace Violentmonkey Scripts | |
| // @include https://bamboo.internal.numetric.com/*/ci_test_logs | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 10/24/2023, 1:01:20 PM | |
| // ==/UserScript== |
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
| const { reduce, range, map } = require('lodash/fp') | |
| const fibinacci = | |
| num => reduce( | |
| acc => [ | |
| acc[0] + acc[1], | |
| acc[0] | |
| ], | |
| [1,0], | |
| range(0, num) |
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
| const branch = function(b) { | |
| return b.if ? b.then : b.else; | |
| } | |
| const fizzbuzz = function(num) { | |
| return branch({ | |
| if: num % 3 === 0 && num % 5 === 0, | |
| then: 'fizzbuzz', | |
| else: branch({ | |
| if: num % 3 === 0, |