Skip to content

Instantly share code, notes, and snippets.

View kaichii's full-sized avatar

kâichi kaichii

View GitHub Profile
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@fscm
fscm / install_cmake.md
Last active November 14, 2024 03:10
[macOS] Install CMake

[macOS] Install CMake

Instructions on how to install the CMake tool on macOS.

Uninstall

First step should be to unsinstall any previous CMake installation. This step can be skipped if no CMake version was previously installed.

To uninstall any previous CMake installations use the following commands:

@kaichii
kaichii / replace-tw-to-zh.js
Last active January 1, 2024 09:13
替换《旋元佑进阶文法》中的术语为大陆版本
// ==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
@Victrid
Victrid / gitgraft.sh
Created August 29, 2022 17:09
Find which commit your no-git friend is working on and generate patches for attaching their works onto git tree.
#!/bin/bash
hash git 2>/dev/null || { echo >&2 "Required command 'git' is not installed. ( hmm... why are you using this? ) Aborting."; exit 1; }
hash realpath 2>/dev/null || { echo >&2 "Required command 'realpath' is not installed. Aborting."; exit 1; }
hash pwd 2>/dev/null || { echo >&2 "Required command 'pwd' is not installed. Aborting."; exit 1; }
hash cd 2>/dev/null || { echo >&2 "Required command 'cd' is not installed. Aborting."; exit 1; }
hash echo 2>/dev/null || { echo >&2 "Required command 'echo' is not installed. Aborting."; exit 1; }
hash mv 2>/dev/null || { echo >&2 "Required command 'mv' is not installed. Aborting."; exit 1; }
hash diff 2>/dev/null || { echo >&2 "Required command 'diff' is not installed. Aborting."; exit 1; }
hash diffstat 2>/dev/null || { echo >&2 "Required command 'diffstat' is not installed. Aborting."; exit 1; }