Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
breakthrough!

荣顶 wangrongding

🦄
breakthrough!
View GitHub Profile
@wangrongding
wangrongding / esm-package.md
Created December 31, 2022 03:24 — forked from sindresorhus/esm-package.md
Pure ESM package
View esm-package.md

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@wangrongding
wangrongding / disable-low-volume.md
Last active October 17, 2022 16:25 — forked from yimity/disable-low-volume
禁用 Mac QQ 开启视频其他媒体声音变低的功能
View disable-low-volume.md

printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n QQ

"printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n FaceTime"

printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n WeChat

sound control

全局关闭

@wangrongding
wangrongding / package.json
Created October 10, 2022 05:54 — forked from adamreisnz/package.json
Simple pure npm scripts build process
View package.json
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",
View regex-weburl.js
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
View tiktok.conf
# Shadowrocket: 2022-05-01 16:08:47
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com
tun-excluded-routes = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
dns-server = system
ipv6 = true
@wangrongding
wangrongding / index.html
Created August 26, 2021 08:09
Rotating ASCII Globe
View index.html
<div id="output"></div>
View index.html
<!DOCTYPE html>
<p id="greeting"></p>
<script type="module">
import {Runtime, Inspector, Library} from "https://unpkg.com/@observablehq/notebook-runtime?module";
import notebook from "https://api.observablehq.com/d/6c9b7fd62ca784c0.js";
// Rewrite the notebook to redefine the “subject” cell in the main module.
const override = {
id: notebook.id,
@wangrongding
wangrongding / bookmarks
Last active March 11, 2022 06:38
chrome bookmarks backup
View bookmarks
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1620879001" LAST_MODIFIED="1646978437" PERSONAL_TOOLBAR_FOLDER="true">书签栏</H3>
<DL><p>
@wangrongding
wangrongding / 📊 Weekly development breakdown
Last active February 6, 2023 01:11
Weekly development breakdown
View 📊 Weekly development breakdown
TypeScript 6 h 46 m ██████▋░░░░░░░░░░░░░░ 32.0%
Vue.js 6 h 38 m ██████▌░░░░░░░░░░░░░░ 31.4%
JavaScript 4 h 3 m ████░░░░░░░░░░░░░░░░░ 19.1%