This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// ================================ | |
// 触发数学模式 | |
// ================================ | |
// {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"}, | |
// ================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************************************************** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |