Skip to content

Instantly share code, notes, and snippets.

@Misaka-0x447f
Misaka-0x447f / quantumult.conf
Last active August 18, 2024 03:02
quantumult rules
[general]
server_check_url= http://google.com/generate_204
resource_parser_url= https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js
;运行模式模块,running_mode_trigger 设置,即根据网络自动切换 分流/直连/全局代理 等模式。
;running-mode-trigger 模式下,跟手动切换直连/全局代理 等效,rewrite/task 模块始终会生效,比 ssid 策略组设置简单,比 ssid-suspend 更灵活。
;running_mode_trigger=filter, filter, asus-5g:all_direct, asus: all_proxy
; 上述写法,前两个 filter 表示 在 4G 网络跟一般 Wi-Fi 下,走 filter(分流)模式,asus-5g 则切换为全局直连,asus 切换为全局代理
; 如需使用,相应 SSID 换成你自己 Wi-Fi 名即可
@Misaka-0x447f
Misaka-0x447f / Reminder for install Debian and KDE Plasma.md
Last active December 14, 2023 12:12
在系统上做的修改的备忘
@Misaka-0x447f
Misaka-0x447f / TypedEvent.ts
Last active February 13, 2025 09:42
Strongly Typed Event
/**
* An eventManager, but typed to prevent errors.
* @example
* type Payload = {ready: boolean}
* const networkStateChange = new TypedEvent<Payload>()
* const handler = (payload: Payload) => console.log(payload)
* networkStateChange.sub(handler)
* networkStateChange.dispatch({ready: true})
* networkStateChange.unsub(handler)
* @example
@Misaka-0x447f
Misaka-0x447f / creatingTransparentSlot.md
Created December 17, 2019 13:16
Creating transparent slot

outer, where scope pointed to the most deep child component, customer.

<layer1>
    <template v-slot:slotName="scope">
        {{scope}}
    </template>
</layer1>

layer1, where the slot name defined by parent.

@Misaka-0x447f
Misaka-0x447f / instanceof.md
Last active August 31, 2019 10:55
Learn about the instanceof, the Function, And the Object

The three property

*.__proto__: the constructor function of an object.
*.prototype: the value of prototype is used to initialize __proto__.
*.constructor: the constructor function to create new object.

> const o = new Object();
> o.__proto__ === Object.prototype
true
@Misaka-0x447f
Misaka-0x447f / circleci.yaml
Created May 30, 2019 10:45
circle-ci aws config example
version: 2
jobs:
cicd:
working_directory: ~/circleci-working-dir-5efc0ca6
docker:
- image: circleci/node:10-jessie
environment:
NODE_ENV: production
S3_BUCKET: s3://dataapp-staging
steps:
@Misaka-0x447f
Misaka-0x447f / 000.wast
Last active May 24, 2019 12:36
Web Assembly (Text format) Getting started
;; modules contains functions, memorys, etc
(module
;; import the "console.log" and set the pointer
(import "console" "log" (func $log (param i32)))
(func $main
;; export as the name "main" so we can call that in javascript
(export "main")
i32.const 1
i32.const 2
;; now we have this in the stack: [2, 1]

技术选型说明文档

个人建议的技术

个人建议在本项目中使用的技术有:

  • Vue2
    • vue-router
    • 使用TypeScript构建的状态管理器和事件管理器
  • TypeScript3
  • Stylish
  • pug
  • npm
@Misaka-0x447f
Misaka-0x447f / KKSKC000.000
Created February 27, 2019 11:29
HP39GS Music player C: Compiler P: Player
HP39AscD 5 KKSKC
BEEP 494;0.1:
WAIT 0.05:
BEEP 494;0.1:
WAIT 0.05:
INPUT I;"KKSK Compiler";"M_";"Which Matrix (1~8)?";2:
CASE
IF I==1 THEN M1\|>M9: END
IF I==2 THEN M2\|>M9: END
IF I==3 THEN M3\|>M9: END