Skip to content

Instantly share code, notes, and snippets.

View xgqfrms's full-sized avatar
💭
🎉 👻 💻 🕵️‍♂️

xgqfrms xgqfrms

💭
🎉 👻 💻 🕵️‍♂️
View GitHub Profile
@xgqfrms
xgqfrms / Promises A+ 规范, js 实现 Promise.md
Created March 7, 2023 09:14
Promises/A+ 规范, js 实现 Promise

Promises/A+ 规范, js 实现 Promise

// @ts-ignore

export {};
@xgqfrms
xgqfrms / js double not bitwise performance test.md
Last active February 25, 2023 16:24
js double not bitwise performance test

js double not bitwise performance test

test env

// Chrome DevTools
// Version 109.0.5414.119 (Official Build) (x86_64)
@xgqfrms
xgqfrms / gist multi files demo.md
Last active February 24, 2023 15:27
gist multi files demo

gist multi files demo

add file

image

多个文件会通过 hash 值进行定位和区分 file-???-type

@xgqfrms
xgqfrms / GitHub Actions Status & workflows SVG badge.md
Created February 9, 2023 03:50
GitHub Actions Status & workflows SVG badge

GitHub Actions Status & workflows SVG badge

After actual verification, I came up with the following solutions

solution 1: you can use the name of your workflow .yml file.

https://github.com/{username}/{repository}/workflows/{your_`.yml`_file_name}/badge.svg
@xgqfrms
xgqfrms / How to register ChatGPT account and use ChatGPT service in China All In One.md
Created February 3, 2023 08:54
How to register ChatGPT account and use ChatGPT service in China All In One

How to register ChatGPT account and use ChatGPT service in China All In One

在中国如何注册 ChatGPT 账号和使用 ChatGPT 服务 All In One

🇨🇳 errors ❌

OpenAI's services are not available in your country.

@xgqfrms
xgqfrms / TypeScript Generic & Arrow Function All In One.md
Created January 28, 2023 16:57
TypeScript Generic & Arrow Function All In One
@xgqfrms
xgqfrms / linux-shell-comments-EOF.md
Last active April 9, 2024 06:39 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script

appify

#!/bin/bash

if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
@xgqfrms
xgqfrms / macOS 使用 VPN 可以访问 Youtube 无法访问 Google 的原因和解决方案.md
Last active December 8, 2022 09:04
macOS 使用 VPN 可以访问 Youtube 无法访问 Google 的原因和解决方案

macOS 使用 VPN 可以访问 Youtube 无法访问 Google 的原因和解决方案

https://support.google.com/chromebook/answer/1085581?hl=zh-Hans

“无法显示此网页” 这条消息意味着:Google Chrome 找不到您尝试访问的网页,因此无法加载此网页。要解决该问题,请尝试执行以下步骤。

检查网址 如果您在自己的浏览器窗口中看到“ERR_NAME_NOT_RESOLVED”或“ERR_CONNECTION_REFUSED”消息,请尝试执行以下步骤: