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
@import url("https://capnkitten.github.io/BetterDiscord/Themes/Material-Discord/css/fonts/google-sans.css"); | |
@import url("https://capnkitten.github.io/BetterDiscord/Themes/Material-Discord/css/icons.css"); | |
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@396&display=swap') | |
:root { | |
--app-font: "Google Sans", "Noto Kufi Arabic", sans-serif; | |
--app-bg: var(--main-alt); | |
--accent-hue: 224; | |
--accent-saturation: 71%; |
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 Gist Downloader Plus | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Directly download GitHub gists as source files. | |
// @author Ahmed Mohamed Abdelaty | |
// @match https://gist.github.com/*/* | |
// @grant GM_addStyle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_download |
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
import { readFileSync, writeFileSync } from "fs"; | |
function editFile(filePath, time) { | |
const fileContent = readFileSync(filePath, "utf8").split("\n"); | |
let counter = 0; | |
for (let i = 0; i < fileContent.length; i++) { | |
const line = fileContent[i]; | |
if (line.match(/^- \[ \] Section \d+: \w+/)) { | |
fileContent[i] = `${line} (${time[counter]})`; | |
counter++; | |
} |
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
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; |
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
import random | |
# Read lines from input.txt | |
with open('input.txt', 'r') as f: | |
lines = f.readlines() | |
# Shuffle the lines randomly | |
random.shuffle(lines) | |
# Print shuffled lines with a newline after each line |