Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

kaichi kaichii

🎯
Focusing
View GitHub Profile
@kaichii
kaichii / replace-tw-to-zh.js
Created Aug 12, 2022
替换《旋元佑进阶文法》中的术语为大陆版本
View replace-tw-to-zh.js
// ==UserScript==
// @name 《旋元佑进阶文法》大陆术语替换
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 替换《旋元佑进阶文法》中的术语为大陆版本
// @author kaichi
// @match https://grammar.codeyu.com/
// @exclude https://grammar.codeyu.com/#docs/terminology
// @icon https://www.google.com/s2/favicons?sz=64&domain=codeyu.com
// @grant none
@kaichii
kaichii / userscript-github-disable-turbolinks.js
Created Aug 6, 2022
userscript github disable turbolinks
View userscript-github-disable-turbolinks.js
@kaichii
kaichii / deepDiffObj.js
Created Sep 27, 2021 — forked from tennox/deepDiffObj.js
Deep diff between two object, using lodash
View deepDiffObj.js
import _ from 'lodash';
/**
* Deep diff between two objects - i.e. an object with the new value of new & changed fields.
* Removed fields will be set as undefined on the result.
* Only plain objects will be deeply compared (@see _.isPlainObject)
*
* Inspired by: https://gist.github.com/Yimiprod/7ee176597fef230d1451#gistcomment-2565071
* This fork: https://gist.github.com/TeNNoX/5125ab5770ba287012316dd62231b764/
*