Skip to content

Instantly share code, notes, and snippets.

View spcbfr's full-sized avatar

Yusuf Bouzekri spcbfr

View GitHub Profile
// this is my solution to the following freeCodeCamp challenge:
// freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/reverse-a-string
let reverseString = (str) => {
let reversedArray = [];
let finalString = "";
for(let i = 0; i < str.length; i++){
reversedArray.unshift(str[i]);
}
for(let j = 0; j < reversedArray.length; j++){
finalString += reversedArray[j]
@Sporif
Sporif / dark-scrollbar.as.css
Last active July 28, 2021 04:55
Dark scrollbar for Firefox 57. Tested on Windows 10. Requires https://gist.github.com/Sporif/db6b3440fba0b1bcf5477afacf93f875
scrollbar, scrollbar *, scrollcorner {
-moz-appearance: none !important;
--scrollbar-width: 10px;
--scrollbar-height: var(--scrollbar-width);
}
scrollbar, scrollcorner {
background: #282828 !important;
}
scrollbar[orient="vertical"] {