Skip to content

Instantly share code, notes, and snippets.

View ofseed's full-sized avatar

Yi Ming ofseed

  • 05:52 (UTC +08:00)
View GitHub Profile
@ofseed
ofseed / kitty.conf
Created October 9, 2023 07:05
Kitty Configuration
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
font_size 14.0
modify_font underline_position 150%
modify_font underline_thickness 150%
#: }}}
@ofseed
ofseed / .clang-tidy
Created August 12, 2023 16:26
clang-tidy from CLion
# Generated from CLion Inspection settings
---
Checks: '-*,
bugprone-argument-comment,
bugprone-assert-side-effect,
bugprone-bad-signal-to-kill-thread,
bugprone-branch-clone,
bugprone-copy-constructor-init,
bugprone-dangling-handle,
bugprone-dynamic-static-initializers,
@ofseed
ofseed / javascript.lua
Created August 3, 2023 08:54
JavaScript snippets from IntelliJ
local insert_same_with_and_append = function(args, _, _, user_arg1)
return sn(nil, {
i(1, args[1][1] .. user_arg1),
})
end
local arf
local assert = s(
{
@ofseed
ofseed / python.lua
Last active August 3, 2023 04:21
Python snippets from PyCharm
-- Same with text node, used for function nodes
local function text_same_with(args)
return args[1]
end
-- Same with text node, used for dynamic nodes
local function insert_same_with(args)
return sn(nil, {
i(1, args[1]),
})
-- vim:foldmethod=marker
---@diagnostic disable: different-requires
-- Automatically download lazy.nvim if it doesn't exist
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"--single-branch",