Skip to content

Instantly share code, notes, and snippets.

View mattxlee's full-sized avatar
🏠
Working from home

MATTHΞW mattxlee

🏠
Working from home
  • China Shanghai
  • 21:43 (UTC +08:00)
View GitHub Profile
@mattxlee
mattxlee / gist:5840ce07e9a5ed1d0638ae829897ce9a
Created July 8, 2024 14:30
clang-tidy for c++ config file.
Checks: 'clang-analyzer-*\
,bugprone-*,\
-bugprone-branch-clone,\
-bugprone-easily-swappable-parameters,\
cppcoreguidelines-*,\
-cppcoreguidelines-pro-type-const-cast,\
-cppcoreguidelines-pro-type-reinterpret-cast,\
-cppcoreguidelines-init-variables,\
-cppcoreguidelines-pro-type-member-init,\
-cppcoreguidelines-avoid-magic-numbers,\
@mattxlee
mattxlee / gist:8eb5b424f9ff1a124543342d7581aaa3
Created July 8, 2024 14:29
clang-format for c++ projects.
---
Language: Cpp
BasedOnStyle: WebKit
AccessModifierOffset: -2
BreakBeforeBraces: Attach
ColumnLimit: 80
IndentWidth: 2
ContinuationIndentWidth: 4
DerivePointerAlignment: false
PointerAlignment: Left
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
config.audible_bell = 'Disabled'
config.font = wezterm.font('Source Code Pro', { weight = 'Medium' })
config.font_size = 14
config.font_rules = {
@mattxlee
mattxlee / gist:e87f69b04cd8ccb3edb8fb1d62c2920a
Last active March 28, 2023 05:46
Gruvbox dark for Microsoft Windows Terminal
{
"background" : "#1d2021",
"black" : "#282828",
"blue" : "#458588",
"brightBlack" : "#928374",
"brightBlue" : "#83A598",
"brightCyan" : "#8EC07C",
"brightGreen" : "#B8BB26",
"brightPurple" : "#D3869B",
"brightRed" : "#FB4934",