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
/** | |
* Extracts the type of values in an object or array | |
* | |
* @example | |
* type Colors = { | |
* primary: string; | |
* secondary: string; | |
* }; | |
* | |
* type ColorValue = ValueOf<Colors>; // string |
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
const { exec } = require("child_process"); | |
const semver = require("semver"); | |
const { program } = require("commander"); | |
// Define the command-line arguments using commander | |
program | |
.option("--upgrade <package>", "The package to upgrade") | |
.option("--required <dependency>", "The required version of the dependency"); | |
program.parse(process.argv); |
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
tell application "Finder" | |
set _bounds to bounds of window of desktop | |
set _height to item 4 of _bounds | |
end tell | |
tell application "Safari" | |
make new document at end of documents with properties {URL:"https://llamalife.co/tasks"} | |
set bounds of front window to {0, 0, 300, _height} | |
end tell |
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
[gd_resource type="EditorSettings" load_steps=7 format=3] | |
[sub_resource type="InputEventKey" id="InputEventKey_royfo"] | |
physical_keycode = 84 | |
[sub_resource type="InputEventKey" id="InputEventKey_4gnok"] | |
meta_pressed = true | |
physical_keycode = 84 | |
[sub_resource type="InputEventKey" id="InputEventKey_xxe3q"] |
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
// ==UserScript== | |
// @name Force Godot Docs to latest english | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description When opening the godot docs, always show the page in english and the latest version | |
// @author DATADEER | |
// @match https://docs.godotengine.org/* | |
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Godot_icon.svg/2048px-Godot_icon.svg.png | |
// @grant none | |
// ==/UserScript== |
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
{ | |
"title": "SHIFT ARROWS", | |
"rules": [ | |
{ | |
"description": "SHIFT LEFT_ARROW", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
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
{ | |
"title": "OPTION ARROWS", | |
"rules": [ | |
{ | |
"description": "OPTION LEFT_ARROW", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
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
{ | |
"title": "COMMAND ARROWS", | |
"rules": [ | |
{ | |
"description": "COMMAND LEFT_ARROW", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
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
{ | |
"%%true": { | |
"%function": { | |
"name": "canReadWritePartition", | |
"arguments": [ | |
"%%partition" | |
] | |
} | |
} | |
} |
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/sh | |
# Locks a pdf with a custom password via pdftk. | |
# ONLY LOCKS EDITING. CAN STILL BE OPENEND WITHOUT PASSWORD | |
# HOW TO: | |
# pdftk has to be globally accessible. https://www.pdflabs.com/ | |
# run sh lock.sh [filename_without_filetype] [password] | |
filename=$1 | |
password=$2 | |
echo locking "$filename".pdf && |
NewerOlder