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 zsh | |
| set -u | |
| setopt extendedglob nullglob | |
| SCRIPT_NAME=${0:t} | |
| usage() { | |
| cat <<EOF | |
| Usage: $SCRIPT_NAME [options] [input_dir] |
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
| { | |
| module: false, // bookmarklets are usually classic scripts, not ESM | |
| parse: { | |
| ecma: 2020 | |
| }, | |
| compress: { | |
| ecma: 2020, | |
| passes: 2, |
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
| javascript: (() => { | |
| const KEY = "__twitchAutoClaimer"; | |
| if (window[KEY]?.stop) { | |
| window[KEY].stop(false); | |
| return; | |
| } | |
| const state = { | |
| start: new Date(), | |
| checks: 0, |
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/zsh | |
| # Check if jq is installed | |
| if ! command -v jq &> /dev/null; then | |
| echo "Error: jq is not installed. Please install it before continuing." | |
| exit 1 | |
| fi | |
| # Check if a configuration file name is provided | |
| if [[ -z $1 ]]; then |
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/zsh | |
| # Force pairlist/blacklists and strategies update? | |
| FORCEUPDATE=0 | |
| # Add git commits | |
| ADDGITCOMMITS=0 | |
| # Default root path | |
| ROOT_PATH="${HOME}" |
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
| function onTinyInspectorMouseOver(evt) { | |
| if (evt.target == p || evt.target == c) { return; } | |
| p.innerHTML = evt.target.tagName + " " + evt.target.className; | |
| c.innerHTML = window.getComputedStyle(evt.target).getPropertyValue("width") + " x " + window.getComputedStyle(evt.target).getPropertyValue("height"); | |
| evt.target.style.backgroundColor = "rgba(255, 0, 0, 0.15)"; | |
| evt.target.style.border = "1px solid rgba(255, 0, 0, 0.5)"; | |
| } | |
| function onTinyInspectorMouseOut(evt) { | |
| if (evt.target == p || evt.target == c) { return; } |
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/env zsh | |
| # create webm and mp4 web version of video | |
| webvideo() { | |
| if [ -z "$1" ]; then | |
| printf "\Video source not set\n" | |
| exit 1 | |
| fi | |
| SOURCE="$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
Show hidden characters
| { | |
| "folders": [ | |
| { | |
| "file_exclude_patterns": [ | |
| "*.sublime-*", | |
| "*.pyc", | |
| "*.pyo", | |
| "*.exe", | |
| "*.dll", | |
| "*.obj", |
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
| /** | |
| * jQuery.getTransitionDuration | |
| * A jQuery plugin to get transition-duration in milliseconds | |
| * Works with multiple values and supports all browser vendor prefixes | |
| * | |
| * Usage with single transition-duration values $(div).getTsDuration() | |
| * Usage with multiple transition-duration values $(div).getTsDuration("opacity") (otherwise would return the first) | |
| * | |
| * Based on a gist by Chris Montes https://gist.github.com/mandelbro/4067903 | |
| */ |
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
| (function(factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| // AMD. Register as an anonymous module. | |
| define(['jquery', 'moment', 'moment-timezone'], factory); | |
| } else if (typeof module === 'object' && module.exports) { | |
| // Node/CommonJS | |
| module.exports = function(root, jQuery, moment) { | |
| if (jQuery === undefined) { | |
| // require('jQuery') returns a factory that requires window to | |
| // build a jQuery instance, we normalize how we use modules |
NewerOlder