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
/* Made by https://github.com/hexxone */ | |
/* gradient default */ | |
/* :root { | |
--accent1-light: #a95bc2; | |
--accent1-dark: #3f2348; | |
--accent1-light-opacity1: rgba(169, 91, 194, .4); | |
--accent2-light: #00a4db; | |
--accent2-dark: #003d52 | |
} */ |
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
// ==UserScript== | |
// @name Auto-Toggle GitLab Pipeline Dependencies | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically toggle the "Show dependencies" button on Gitlab Pipeline pages | |
// @author hexx.one | |
// @match https://gitlab.yourserver.com/*/pipelines/* | |
// @grant none | |
// ==/UserScript== |
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
# Copyright (c) 2017 Stanislav Bobokalo & Alexey Borontov & Dominic T | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
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 for "compressing" array data into a shorter array whilst maintaining | |
// the same cross-total value and relativity of values to each other | |
function compressArrayData (arr, toLen) { | |
if (!Array.isArray(arr) || isNaN(toLen) || arr.length < toLen) throw "ArgumentError"; | |
// 1 new data field is equals to this many source fields | |
var sizeRatio = arr.length / toLen; | |
// result storage | |
var results = []; | |
var resIndx = 0; |