Skip to content

Instantly share code, notes, and snippets.

@Zackhardtoname
Zackhardtoname / reset_LeetCode_editor_on_load.user.js
Last active May 10, 2024 04:44
reset LeetCode editor on load
// ==UserScript==
// @name reset LeetCode editor on load
// @namespace https://zacklight.com/
// @version 0.3
// @description Reset LeetCode on load so you wouldn't accidentally see a previously submitted solution!
// @author Zack Light
// @match https://leetcode.com/problems/*
// @downloadURL https://gist.github.com/Zackhardtoname/32a535ab0d7775b5aa253a913ff3e4ec/raw/41f7ffb2358d979f44adbefeaa4ad83370311cca/reset_LeetCode_editor_on_load.user.js
// @updateURL https://gist.github.com/Zackhardtoname/32a535ab0d7775b5aa253a913ff3e4ec/raw/41f7ffb2358d979f44adbefeaa4ad83370311cca/reset_LeetCode_editor_on_load.user.js
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@Zackhardtoname
Zackhardtoname / bash-to-zsh-hist.py
Created April 7, 2022 00:37 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@Zackhardtoname
Zackhardtoname / countryinfo.py
Created January 23, 2021 15:51 — forked from pamelafox/countryinfo.py
Python list of country codes, names, continents, capitals, and pytz timezones
countries = [
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'},
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'},
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"},
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'},
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'},
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai
@Zackhardtoname
Zackhardtoname / annotatable-calculator.markdown
Last active September 28, 2018 07:40
StudyDate Calculator