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
#!/bin/bash | |
read_cmd="gsettings get org.gnome.desktop.interface color-scheme" | |
watch_cmd="gsettings monitor org.gnome.desktop.interface color-scheme" | |
conf_path="$HOME/.config/gtk-3.0/settings.ini" | |
function setDarkMode() { | |
sed -i "s/^gtk-application-prefer-dark-theme=.*/gtk-application-prefer-dark-theme=$1/" $conf_path | |
echo "Set darkmode value to $1" | |
} |
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 argparse | |
import sys | |
import semver | |
import tomlkit | |
def read_version_from_pyproject() -> semver.Version: | |
with open("pyproject.toml", "r") as file: | |
pyproject = tomlkit.load(file) |
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
let finalData = {}; | |
function collectData() { | |
const dataTable = document.querySelectorAll('table[style=\'border-collapse:collapse;\'] tr:not([height="30"])'); | |
for (let row of dataTable) { | |
let cells = row.cells; | |
let courseId = cells[1].innerText.trim(); | |
let courseName = cells[2].innerText.trim(); | |
let grade = cells[5].innerText.trim(); | |
let credit = parseFloat(cells[3].innerText.trim()); |
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
#!/bin/bash | |
# ========================================================================= | |
# Patches Nvidia Web Driver installers for installing on non-MacPro devices | |
# By: Md. Salman Morshed - [email protected] | |
# ========================================================================= | |
PKG_FILE="$(ls | grep WebDriver | head -1)" | |
TMP_DIR="$PKG_FILE.temp" |
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
// ==================================== // | |
// ZED'S PERSONAL KEYBINDS AND SETTINGS // | |
// ------------------------------------ // | |
// *** Last updated @ 4 Oct 2016 *** // | |
// ==================================== // | |
//Personal | |
//set m_filter "0" | |
//set sensitivity 2.20 // 2400 CPI & OS X 0.0 mouse scaling |
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
#!/usr/bin/env python | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |