type StringBool = "true"|"false";
interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };
type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];Discover gists
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
| --- | |
| name: frontend-design | |
| description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics. | |
| license: Complete terms in LICENSE.txt | |
| --- | |
| This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices. | |
| The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints. |
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
| Disable REST Api without Plugins | |
| https://rudrastyh.com/wordpress/disable-rest-api.html | |
| Add featured image & alt text to WP REST API | |
| https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/ | |
| Allow ALL cross origin requests to WordPress REST API | |
| https://github.com/Shelob9/rest-all-cors | |
| WordPress theme using Rest API and Vue.js |
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
| <?php | |
| /** | |
| * This script search user with @@@nopass@@@ passwords and replace them by random passwords | |
| */ | |
| /** Sets up the WordPress Environment. */ | |
| require( dirname(__FILE__) . '/wp-load.php' ); | |
| $users = get_users(); |
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 WPlace Art Exporter | |
| // @namespace kotton.tools | |
| // @version 0.5 | |
| // @description Export clean artwork from wplace with transparent background | |
| // @author Kottonye | |
| // @match https://wplace.live/* | |
| // @match https://*.wplace.live/* | |
| // @run-at document-start | |
| // @grant none |
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 axios from "axios"; | |
| import * as cheerio from "cheerio" | |
| async function scrapeNasa() { | |
| try { | |
| const { data: html } = await axios.get('https://www.nasa.gov/', { | |
| headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' } | |
| }); | |
| const $ = cheerio.load(html); |
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
| rules: | |
| type-enum: | |
| - 2 | |
| - always | |
| - - build # build system changes | |
| - infra # CI/CD, VCS, deployment, etc. | |
| - devtools # developer tools not covered by `infra` | |
| - docs # non-meta documentation changes | |
| - meta # meta documentation changes or manifest-related changes |
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
| ;; based on @babygau's answer here https://stackoverflow.com/a/40559502 | |
| #NoEnv ; recommended for performance and compatibility with future autohotkey releases. | |
| #UseHook | |
| #InstallKeybdHook | |
| #SingleInstance force | |
| SendMode Input | |
| ;; deactivate capslock completely | |
| SetCapslockState, AlwaysOff |
This is a list of Minecraft 1.7.10 mods that are not focused on adding new original content. Instead, they make the base game run better, or port over features from other versions of vanilla.
These lists try to comprehensively list all the available options. You will not want to use all of the listed mods at once.
Some of the listed mods require a Mixin bootstrap mod in order to work. See the Mixin mods section near the end of the document for information about that.
NewerOlder