Skip to content

Instantly share code, notes, and snippets.

@funcdfs
funcdfs / obsidian_latex_suite_extension
Created August 10, 2025 16:54
更适合中国宝宝体质的 obsidian latex suite command config
[
// ================================
// 触发数学模式
// ================================
// {trigger: "sm", replacement: "$$ $0$$", options: "tA"},
// {trigger: "am", replacement: "$\\displaystyle $0$", options: "tA"},
{trigger: "ssm", replacement: "$\\displaystyle $0$", options: "tA"},
{trigger: "ddm", replacement: "$$ $0$$", options: "tAw"},
// ================================
@funcdfs
funcdfs / dbg.h
Created March 24, 2025 09:10
macdbg.h
/*****************************************************************************
* source: https://github.com/sharkdp/dbg-macro
* change: remove file path in log
* remove type for variables
* replace std::endl with '\n'
* add eprint and eprintln
*****************************************************************************/
#ifndef DBG_MACRO_DBG_H
# define DBG_MACRO_DBG_H
@funcdfs
funcdfs / dbg.h
Last active September 22, 2024 09:49
algo/dbg.h
#include <vector>
#include <iostream>
#include <tuple>
#include <bitset>
template <typename A, typename B>
std::string to_string(std::pair<A, B> p);
template <typename A, typename B, typename C>
std::string to_string(std::tuple<A, B, C> p);