Skip to content

Instantly share code, notes, and snippets.

@ziteh
ziteh / init.lua
Last active January 19, 2024 12:29
Vim config
----- Vim -----
vim.cmd("set nu rnu")
vim.cmd("set cursorline")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
vim.cmd("set expandtab")
vim.cmd("set autoindent")
vim.cmd("set smartindent")
@ziteh
ziteh / jlcpcb_1oz_1-2layer.kicad_dru
Last active November 23, 2022 15:27
KiCad custom rules for JLCPCB
##############################
# MIT License
#
# Copyright (c) 2022 ZiTe
#
# 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
@ziteh
ziteh / c_cpp.clang-format
Last active February 3, 2024 03:42
clang-format
---
Language: Cpp
BasedOnStyle: LLVM
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
UseTab: Never
AlignAfterOpenBracket: Align
AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: All
@ziteh
ziteh / luna_pinyin.custom.yaml
Last active April 2, 2023 12:09 — forked from lotem/luna_pinyin.custom.yaml
RIME【朙月拼音】模糊音定製模板-ZiTe自訂版
# luna_pinyin.custom.yaml
#
# 【朙月拼音】模糊音定製模板-ZiTe自訂版
# 佛振配製 :-)
# ZiTe修改(Forked from https://gist.github.com/lotem/2320943)
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)