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 node | |
| import fs from 'node:fs/promises'; | |
| import {styleText} from 'node:util'; | |
| import { argv } from 'node:process'; | |
| const WORKFLOWS_DIR = argv[2] ?? '.github'; | |
| const getLatestVersionInfo = async (repos) => { | |
| if (repos.length === 0 || !process.env.GITHUB_TOKEN) { |
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 Redirect X/Twitter to XCancel | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Redirects x.com and twitter.com URLs to xcancel.com | |
| // @author You | |
| // @match *://x.com/* | |
| // @match *://www.x.com/* | |
| // @match *://twitter.com/* | |
| // @match *://www.twitter.com/* |
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 node | |
| // gh-action-avg-runtime.js | |
| // Description: Calculates the average running time of a GitHub Action workflow using Node.js. | |
| // Dependencies: gh cli, jq | |
| import {exec} from 'node:child_process'; | |
| import { | |
| promisify, | |
| parseArgs, |
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
| <div class="canvas" id="canvasContainer" /> | |
| <script> | |
| import 'q5'; | |
| const canvasContainer = document.getElementById('canvasContainer'); | |
| if (!(canvasContainer instanceof HTMLElement)) { | |
| throw new Error('Canvas container not found'); | |
| } |
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
| ## On the branch to patch | |
| git format-patch master --stdout > [name].patch | |
| ## Change to the target branch | |
| git checkout [branch] | |
| ## Applays the patch while indicating conflicts | |
| git apply --3way changes.patch |
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
| window["optimizely"].push({ | |
| "type": "bucketVisitor", | |
| "experimentId": "30392500298", | |
| "variationId": '30403370293' | |
| }); |
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
| export * as SSOProvider from "./sso-providers.js"; | |
| export type SSOProvider = typeof SSOProvider[keyof typeof SSOProvider]; |
Fix isue of raylib rust on mac
brew link --overwrite cmake Compiling raylib-sys v3.7.0
error: failed to run custom build command for `raylib-sys v3.7.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
| export interface ComponentWithInitialProps<T> extends React.FC<T> { | |
| getInitialProps: getInitialProps; | |
| } |
NewerOlder