Skip to content

Instantly share code, notes, and snippets.

@liuran001
liuran001 / config.yaml
Last active April 20, 2024 15:23
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.4.1-231211
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
# 虚空终端 (Clash Meta) Docs 地址: https://wiki.metacubex.one
@Yarakashi-Kikohshi
Yarakashi-Kikohshi / replace.md
Created May 14, 2022 08:45
LaTeX の置換エトセトラ

LaTeX の置換エトセトラ

LaTeX で文書を作成しているときに句読点など一斉に置換したい場合がある。

ざっと次の 4 つの方法が挙げられる。

  • エディタ
    • ssmacro
    • Replace Rules
  • latexindent
@ikbelkirasan
ikbelkirasan / writing-a-state-of-the-art-section.md
Created November 1, 2018 19:28
Writing the "Related Work" Section of a Paper/thesis

Writing the "Related Work" Section of a Paper/thesis

By: Chamin Morikawa (https://www.linkedin.com/pulse/writing-related-work-section-paperthesis-chamin-morikawa/)

For most students, writing about what they did on their own is not hard. But writing about others' work - which is what you have to do in the "State of the Art" or "Related Work" section - is quite hard for them. Here are a few guidelines to make this task a bit easier.

The Basics

Let's lay down our assumptions before continuing. I assume that you want to write a "Related Work" section for a research paper or a thesis that describes your approach to solve some problem. Let's also assume that there are other publications that attempt to solve the same problem, but the solutions in them are not perfect. Finally, let's assume that your approach has some difference when compared to those by others, and some improvement (faster, more accurate, easier to afford, etc.).

@joshuadanpeterson
joshuadanpeterson / guitar_tabs_template.txt
Last active April 20, 2024 15:21
[Guitar Tabs Template] Plaintext guitar tab template #music #txt
# Guitar Tabs Template
# Created by: Ultimate Guitar
# Source URL: https://www.ultimate-guitar.com/lessons/for_beginners/guitar_tabs_template.html
-----------------------------------------------------------------
SONG NAME - Band Name
-----------------------------------------------------------------
Tabbed by:
Email:
@arkatsy
arkatsy / zustand-internals.jsx
Last active April 20, 2024 15:17
How zustand works internally
import { useSyncExternalStore } from "react";
// For more on the useSyncExternalStore hook, see https://react.dev/reference/react/useSyncExternalStore
// The code is almost identical to the source code of zustand, without types and some features stripped out.
// Check the links to see the references in the source code.
// The links are referencing the v5 of the library. If you plan on reading the source code yourself v5 is the best way to start.
// The current v4 version contains lot of deprecated code and extra stuff that makes it hard to reason about if you're new to this.
// https://github.com/pmndrs/zustand/blob/fe47d3e6c6671dbfb9856fda52cb5a3a855d97a6/src/vanilla.ts#L57-L94
function createStore(createState) {
@chichunchen
chichunchen / .gitignore
Created November 26, 2014 16:51
Git ignore binary files
# Ignore all
*
# Unignore all with extensions
!*.*
# Unignore all dirs
!*/
### Above combination will ignore all files without extension ###
@djamp42
djamp42 / Graylog 5.1 Config
Created July 1, 2023 03:23
Graylog 5.1 Install on Ubuntu 22.04 LTS
sudo nano /etc/graylog/server/server.conf
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
root_password_sha2 =
< /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96};echo;
password_secret =
http_bind_address = 0.0.0.0