liusixun2025's blog

By liusixun2025, history, 111 minutes ago, In English
{
    //Character
    "editor.unicodeHighlight.invisibleCharacters": false,  "editor.unicodeHighlight.ambiguousCharacters": false,
    "render-special-chars.include": ["0080-10FFFF"], "render-special-chars.except": [
        "¡-¬®-ʯḀ-ỹ Ѐ-џҐґ ΆΈ-ώ", //Latin, Greek, Cyrillic
        "一-鿿 ぁ-んァ-ヶー 가-힣", //Chinese, Japanese, Korean
        "–—‘-•… ˆˇˌ˘-˝‹›", "!%(),:-Za-z[]{}|~ 、-〗", "①-⓿❶-❿",
        "⁰-ₜᴬ-ᵪʰʲʳʷʸᶜᶠᶥᶿᶩᶻⱼⱽ ←-∑∓√-∵∷-⊋⊕⊙⊥⌒⌈-⌋⅓-⅞‰ ﹕﹖﹗﹙﹚﹛﹜﹝﹞",
        "₠-₿№™❁❀※⚐⚑✔✘✶★☆✦✧▲△▶▷▼▽◀◁◆◇◉◎●◍☠",
    ], "highlight-bad-chars.additionalUnicodeChars": ["Ѐ-џҐґ", "ĐƩƳǀǁǂǃǝȢɋɌ", "⁻⁰", ], 
    "highlight-bad-chars.allowedUnicodeChars": ["–"], 
    "highlight-unexpected-characters.rules": ["ΆΈ-ώ", "–ᴼᵒ∁Ɖƴƿ", ], 
    "highlight-bad-chars.badCharDecorationStyle": { "backgroundColor": "rgba(0,180,180,0.3)", "borderColor": "rgba(0,180,180,0.6)" },
    
    //Scheme
    "editor.renderLineHighlight": "gutter", "editor.links": false,
    "editor.fontFamily": "'Cascadia Mono Light', consolas, simsun, 'dejavu sans mono', 'microsoft yahei'",
    "editor.renderWhitespace": "all", "editor.showUnused": false,
    "workbench.colorCustomizations": {
        "[Tomorrow Night]": {
            "editor.background": "#4a5f4b", "editorWhitespace.foreground": "#223327", "editor.selectionBackground": "#698a", 
            "editorBracketHighlight.foreground1": "#e0e0e0", "editorBracketHighlight.foreground2": "#c8b8d8",
            "editorBracketHighlight.foreground3": "#eb7", "editorBracketHighlight.foreground4": "#a0c0d0",
            "editorBracketHighlight.foreground5": "#cc7", "editorBracketHighlight.foreground6": "#9ca",
            "editorBracketHighlight.unexpectedBracket.foreground": "#e88", "editor.wordHighlightBackground": "#bbb2",
            "peekViewEditor.background": "#4a5f4b",
        },
    },
    "editor.tokenColorCustomizations": {
        "[Tomorrow Night]": {
            "types": "#e0b0b3", "numbers": "#eb7","comments": "#b0b0b0", "variables": "#e0e0e0", "keywords": "#9ca", 
            "strings": "#ac8", "functions": "#a0c0d0",
            "textMateRules": [
                {"scope": "variable.parameter", "settings": {"foreground": "#c8b8d8", } }, 
                {"scope": "constant.language", "settings": {"foreground": "#eb7", } },
                {"scope": "keyword.other", "settings": {"foreground": "#9ca", } }, 
                {"scope": "keyword.other.unit", "settings": {"foreground": "#eb7", } },
                {"scope": "entity.name.type.class", "settings": {"foreground": "#e0b0b3", } }, 
                {"scope": "constant.character", "settings": {"foreground": "#eb7", } }, 
                {"scope": "constant.other", "settings": {"foreground": "#c8b8d8", } }, 
                {"scope": "entity.name.function.preprocessor", "settings": {"foreground": "#cc7", } }, 
                {"scope": "keyword.operator", "settings": {"foreground": "#eb7", } }, 
                {"scope": "meta.block", "settings": {"foreground": "#f5f5f5", } }, 
                {"scope": "invalid.illegal", "settings": {"foreground": "#f5f5f5", } }, 
                {"scope": "meta.body.function.definition", "settings": {"foreground": "#f5f5f5", } }, 
                {"scope": "meta.preprocessor.macro", "settings": {"foreground": "#f5f5f5", } }, 
                {"scope": "punctuation.separator.delimiter", "settings": {"foreground": "#f5f5f5", } }, 
            ]
        },
    },
    "C_Cpp.inactiveRegionOpacity": 0.8, "workbench.colorTheme": "Tomorrow Night", 
    
    //Other
    "files.defaultLanguage": "cpp", "editor.detectIndentation": false,  
    "editor.mouseWheelZoom": true, "editor.trimAutoWhitespace": false,
    "update.mode": "none",  "extensions.autoUpdate": false,  "update.enableWindowsBackgroundUpdates": false,
    "C_Cpp.default.compilerPath": "C:\\Program Files (x86)\\Embarcadero\\Dev-Cpp\\TDM-GCC-64\\bin\\g++.exe", //You should install Embarcadero Dev-C++.
    "accessibility.voice.speechLanguage": "zh-CN", //You can modify this line, such as ‘"accessibility.voice.speechLanguage": "en-US"’.
}
//Install Extensions:
//(1) Render Special Characters (by miku3920)  (2) Highlight Bad Chars (by Kevin Wenger)
//(3) Highlight Unexpected Characters (by Gizeta)  (4) C/C++ Extension Pack (by Microsoft)
//(5) Insert Unicode (by brunnerh)  (6) VS Code Speech (by Microsoft)
//(7) Tomorrow and Tomorrow Night Theme Kit (by Microsoft)  (8) xxxx Language Pack for Visual Studio Code (by Microsoft)

//If you are using VSCode and can optimize the current 'settings.json', please let us know!

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By liusixun2025, 4 weeks ago, In English
{
"__1csdm__": {
"prefix": "__1csdm__",
"body": [
"#include<bits/stdc++.h>",
"using namespace std;",
"typedef long long LL;  typedef unsigned long long ULL;  typedef long double LD;",
"",
"//Loop Family",
"#define  REP(I,A,B) for( LL I=(A); I<=(B); ++I)",
"#define  rep(I,A,B) for(int I=(A); I<=(B); ++I)",
"#define repo(I,A,B) for(int I=(A); I< (B); ++I)",
"#define REPO(I,A,B) for( LL I=(A); I< (B); ++I)",
"#define  reb(I,A,B) for(int I=(A); I>=(B); --I)",
"#define  REB(I,A,B) for( LL I=(A); I>=(B); --I)",
"#define rebo(I,A,B) for(int I=(A); I> (B); --I)",
"#define REBO(I,A,B) for( LL I=(A); I> (B); --I)",
"#define repeat(A) reb(ID, (A), 1)",
"#define BtoE(I,A) for(auto I=A.begin(); I!=A.end(); ++I)",
"#define EtoB(I,A) for(auto I=A.rbegin(); I!=A.rend(); ++I)",
"",
"//STL container family",
"typedef vector<int> VI;  typedef vector<LL> VL;  typedef vector<char> VC; ",
"typedef vector<VI> VII, VVI;  typedef vector<VL> VLL, VVL;  typedef vector<VC> VCC, VVC; ",
"template<typename T> void push_back(vector<T>&v, const T& e) {",
"    v.size()==v.capacity() && v.size()>1 && (v.reserve(v.size() + (v.size()>>1)), true), v.push_back(e); }",
"#define FI first",
"#define SE second",
"typedef pair<int,int> pii;  typedef pair<int,LL> pil;  typedef pair<LL,int> pli;  typedef pair<LL,LL> pll; ",
"typedef map<int,int> mii;  typedef map<int,LL> mil;  typedef map<LL,int> mli;  typedef map<LL,LL> mll; ",
"typedef set<int> Si;  typedef set<LL> Sl;  typedef multiset<int> MSi;  typedef multiset<LL> MSl; ",
"#define maxHp(T) priority_queue<T>",
"#define minHp(T) priority_queue<T, vector<T>, greater<T> >",
"",
"//Math Family",
"#define M_GOLDEN 1.61803398874989484820",
"#define M_GAMMA 0.57721566490153286060",
"const int mod9=998244353, mod1=1000000007;  const LL MOD9=mod9, MOD1=mod1; ",
"constexpr int inf127=0x01010101, inf=inf127*127, inf2=inf127*63, inf3=inf127*42; ",
"constexpr LL INF127=0x0101010101010101, INF=INF127*127, INF2=INF127*63, INF3=INF127*42; ",
"LL fpw(LL x, LL y=MOD9-2, LL mo=MOD9) {",
"    if(mo==1||mo==-1) {return 0; }  LL ans=1;  ",
"    for(x%=mo; y>0; x=x*x%mo, y>>=1) {if(y&1) ans=ans*x%mo; }  return ans;  }",
"LL fpw1(LL x) { return fpw(x,mod1-2,mod1); }",
"",
"//Operation Family",
"#define Dsort(A,B,T) sort(A, B, greater<T>())",
"#define FileIO(A) freopen(A\".in\", \"r\", stdin), freopen(A\".out\", \"w\", stdout)",
"#define Memset(A, V) memset(A, V, sizeof(A))",
"#define Puta(S) cout<<(S)",
"#define Puts(S) cout<<(S)<<'\\n'",
"#define Putw(S) cout<<(S)<<' '",
"template<typename T> void PutArray(T B, T E) {",
"    for(auto it=B; it!=E; ++it) Puta(*it);     cout<<'\\n';  }",
"",
"//You can write your things here. ",
"",
"void initialize() {}",
"void resetdata() {}",
"void each_task() {}",
"bool __main(int taskID) {",
"    resetdata(); ",
"    ",
"    return 0;",
"}",
"",
"int main() {",
"    initialize();  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); ",
"    int tasks=1;  //cin>>tasks; ",
"    repo(taskID, 0, tasks) if(__main(taskID)) return 0; ",
"    return 0;",
"}"
]
},
}

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it