Skip to content

Instantly share code, notes, and snippets.

View taichunmin's full-sized avatar

戴均民 taichunmin

View GitHub Profile
@taichunmin
taichunmin / dayjs-plugin.js
Last active April 16, 2024 07:02
瀏覽器書籤 JS 大補帖
(async function () {
const sleep = t => new Promise(resolve => { setTimeout(resolve, t) })
while (!window.jsSnippetsPromise) await sleep(100)
await window.jsSnippetsPromise
await sleep(1000)
const plugins = _.chain(_.keys(window))
.filter(k => _.startsWith(k, 'dayjs_plugin_'))
.value()
console.log(`found ${plugins.length} plugins of dayjs`)
for (const plugin of plugins) window.dayjs.extend(window[plugin])
@taichunmin
taichunmin / README.md
Last active March 3, 2024 06:32
Chameleon Ultra Factory Firmware convert from hex by @shallax
MIT License
Copyright (c) 2020 戴均民
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@taichunmin
taichunmin / MsgAcademy00.png
Last active February 25, 2023 14:36
動物森友會卡片 ACNH MailDesign
MsgAcademy00.png
{
"awards": [
{
"awarder": "教育部長 蔣偉寧",
"date": "2013-06-25",
"summary": "「新聞推推樂」作品榮獲 2013 全國大專校院開放軟體創作競賽 雲端網際服務與其他應用組 銅牌",
"title": "2013 全國大專校院開放軟體創作競賽 銅牌"
}
],
"basics": {
@taichunmin
taichunmin / mp-contacts.user.js
Last active May 17, 2022 04:09
從微程式的 Portal 系統中下載通訊錄,需先安裝 Greasemonkey 或 Tampermonkey 才能執行! 下方連結是安裝網址。 https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/raw/mp-contacts.user.js
// ==UserScript==
// @name 微程式通訊錄
// @namespace https://ef.program.com.tw:8443/contacts
// @version 0.24
// @description 從微程式的 Portal 系統中下載通訊錄
// @author taichunmin <taichunmin@gmail.com>
// @website https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/
// @updateURL https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/raw/contacts.user.js
// @downloadURL https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/raw/contacts.user.js
// @match https://ef.program.com.tw:8443/*
aahed
aalii
aargh
aarti
abaca
abaci
aback
abacs
abaft
abaka
@taichunmin
taichunmin / chosen-bootstrap.css
Last active July 18, 2021 07:12
jQuery Chosen for Vue 2
.chosen-select {
width: 100%; }
.chosen-select-deselect {
width: 100%; }
.chosen-container {
display: inline-block;
font-size: 14px;
position: relative;
@taichunmin
taichunmin / seasons_cards.md
Last active July 6, 2021 14:42
Seasons Cards

Seasons 四季物語

王國中最偉大的魔法師們已經聚集在阿爾戈斯森林的腹地。 一場持續十二季的傳奇比賽即將在這裡舉行。 經過三年的比賽,席迪特王國的新任大法師將從他們之中誕生。 魔法師們!請做好準備!裝備起你們的上古魔器,召喚最忠實的神僕,盡銳出戰! 四季物語是一款由「正確的骰子選擇」和「卡片組合」來賺取水晶 (分數) 的遊戲。 第一階段—序幕。通過輪抽卡牌來構築自己的9張魔法牌庫,目的是建立自己在之後遊戲中賺取水晶的策略。 請慎重挑選,因為它們將對隨後的遊戲產生重要影響。 之後,將9張魔法牌分為3組,每組3張。

@taichunmin
taichunmin / windows_appkey.md
Last active May 6, 2021 03:13
Windows AppKey

如何修改 Windows 鍵盤對應

現在的 Keyboard 通常會附多媒體鍵,不過預設值打開可能就是討人厭音質又差的 Windows Media Player。 如果我們希望這些鍵可以按下去是開啟我們想要的軟體,此時通常要裝 Driver,問題是有時候會找不到 Driver,那也沒關係,直接改機碼就可以囉,以下是說明:

  1. 先執行 regedit
    • 機碼位於 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\
  2. 在其下加入數字機碼,代表對應的 AppKey 按鍵 (詳見對應表)
    • 例:16 就是 Media 切換功能
    • 要換掉的話可以先將原來的值備份