Skip to content

Instantly share code, notes, and snippets.

View CarterLi's full-sized avatar
😀

Carter Li CarterLi

😀
  • PRC
  • 19:28 (UTC +08:00)
View GitHub Profile
@CarterLi
CarterLi / counter-animation.md
Last active September 23, 2020 08:22
Counter Animation Using Pure CSS
@CarterLi
CarterLi / init.vim
Created October 29, 2021 15:53
nvimrc
if &shell =~# 'fish$'
set shell=sh
endif
set termguicolors
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'mhinz/vim-startify'
Plug 'lambdalisue/battery.vim'
@CarterLi
CarterLi / pipewire.c
Last active October 13, 2023 03:14
Pipewire: enum audio devices
// -lpipewire-0.3
#include <common/library.h>
#include <pipewire/pipewire.h>
#include <util/stringUtils.h>
struct roundtrip_data {
int pending;
struct pw_main_loop *loop;
const str = ` -h, --help <?command>: Show this message, or help for a specific command
-v, --version: Show the version of fastfetch
--list-config-paths: List search paths of config files
--list-data-paths: List search paths of presets and logos
--list-logos: List available logos
--list-modules: List available modules
--list-presets: List presets fastfetch knows about; they can be loaded with --load-config (+)
--list-features: List the supported features fastfetch was compiled with (mainly for development)
--print-logos: Print available logos
--print-config-system: Print the default system config