Skip to content

Instantly share code, notes, and snippets.

@LincolnYe
Forked from CHEF-KOCH/Evaluation Version 1903
Last active May 16, 2020 11:05
Show Gist options
  • Select an option

  • Save LincolnYe/891bb53d8b784f2e6a28e0ea0065a3f3 to your computer and use it in GitHub Desktop.

Select an option

Save LincolnYe/891bb53d8b784f2e6a28e0ea0065a3f3 to your computer and use it in GitHub Desktop.
Windows 10 Build 18362.30 (May 2019 Update 1903)
{"lastUpload":"2020-05-16T11:05:51.388Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.10.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "690b692e-e8a9-493f-b802-8089d50ac1b2",
"publisherId": "ms-vscode.cpptools",
"publisherDisplayName": "ms-vscode"
},
"name": "cpptools",
"publisher": "ms-vscode",
"version": "0.28.0"
},
{
"metadata": {
"id": "d6ba4b7b-539f-456a-b0f6-0348df44cdf3",
"publisherId": "nikitaKunevich.snippet-creator",
"publisherDisplayName": "nikitaKunevich"
},
"name": "snippet-creator",
"publisher": "nikitaKunevich",
"version": "0.0.5"
}
]
// 将键绑定放在此文件中以覆盖默认值auto[]
[
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f5",
"command": "code-runner.run"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"key": "ctrl+shift+a",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+alt+a",
"command": "cursorLineStart",
"when": "textInputFocus"
},
{
"key": "ctrl+a",
"command": "-cursorLineStart",
"when": "textInputFocus"
}
]
{
"C_Cpp.updateChannel": "Insiders",
"code-runner.saveFileBeforeRun": true,
"code-runner.runInTerminal": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"diffEditor.ignoreTrimWhitespace": true,
"diffEditor.renderSideBySide": true,
"code-runner.fileDirectoryAsCwd": true,
"code-runner.clearPreviousOutput": true,
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": " cd $dir && H:/mingw64/bin/g++.exe $fileName -o ./$fileNameWithoutExt -std=c++14 -DLOCAL && Get-Content test.in | ./$fileNameWithoutExt && echo Done!",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python -u",
"perl": "perl",
"perl6": "perl6",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"scheme": "csi -script",
"ahk": "autohotkey",
"autoit": "autoit3",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run",
"lisp": "sbcl --script",
"kit": "kitc --run"
},
"explorer.confirmDelete": false,
"code-runner.saveAllFilesBeforeRun": true,
"workbench.sideBar.location": "left",
"code-runner.ignoreSelection": true,
"git.autofetch": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"http.proxySupport": "off",
"java.configuration.checkProjectSettingsExclusions": false,
"workbench.colorTheme": "Visual Studio Dark",
"editor.formatOnSave": false,
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"window.zoomLevel": -1,
"sync.gist": "891bb53d8b784f2e6a28e0ea0065a3f3"
}
{
"anm": {
"prefix": "anms",
"body": [
" vector<vi> a(n + 1, vi(m + 1));"
],
"description": "create a[n][m]"
},
"acm_debug": {
"prefix": "acm_debug",
"body": [
"",
"#ifndef ONLINE_JUDGE",
"#define LOCAL",
"",
"#endif",
"",
"#ifdef LOCAL",
"using namespace std;",
"template <typename A, typename B>",
"string to_string(pair<A, B> p);",
"",
"template <typename A, typename B, typename C>",
"string to_string(tuple<A, B, C> p);",
"",
"template <typename A, typename B, typename C, typename D>",
"string to_string(tuple<A, B, C, D> p);",
"",
"string to_string(const string &s)",
"{",
" return '\"' + s + '\"';",
"}",
"",
"string to_string(const char *s)",
"{",
" return to_string((string)s);",
"}",
"",
"string to_string(bool b)",
"{",
" return (b ? \"true\" : \"false\");",
"}",
"",
"string to_string(vector<bool> v)",
"{",
" bool first = true;",
" string res = \"{\";",
" for (int i = 0; i < static_cast<int>(v.size()); i++)",
" {",
" if (!first)",
" {",
" res += \", \";",
" }",
" first = false;",
" res += to_string(v[i]);",
" }",
" res += \"}\";",
" return res;",
"}",
"",
"template <size_t N>",
"string to_string(bitset<N> v)",
"{",
" string res = \"\";",
" for (size_t i = 0; i < N; i++)",
" {",
" res += static_cast<char>('0' + v[i]);",
" }",
" return res;",
"}",
"",
"template <typename A>",
"string to_string(A v)",
"{",
" bool first = true;",
" string res = \"{\";",
" for (const auto &x : v)",
" {",
" if (!first)",
" {",
" res += \", \";",
" }",
" first = false;",
" res += to_string(x);",
" }",
" res += \"}\";",
" return res;",
"}",
"",
"// template <typename A>",
"// auto DA2(A x, int begin, int end)",
"// {",
"// return vector(x + begin, x + end);",
"// }",
"",
"template <typename A>",
"vector<A> DA(vector<A> x, int begin, int end)",
"{",
" return vector<A>(x.begin() + begin, x.begin() + end);",
"}",
"",
"template <typename A, typename B>",
"string to_string(pair<A, B> p)",
"{",
" return \"(\" + to_string(p.first) + \", \" + to_string(p.second) + \")\";",
"}",
"",
"template <typename A, typename B, typename C>",
"string to_string(tuple<A, B, C> p)",
"{",
" return \"(\" + to_string(get<0>(p)) + \", \" + to_string(get<1>(p)) + \", \" + to_string(get<2>(p)) + \")\";",
"}",
"",
"template <typename A, typename B, typename C, typename D>",
"string to_string(tuple<A, B, C, D> p)",
"{",
" return \"(\" + to_string(get<0>(p)) + \", \" + to_string(get<1>(p)) + \", \" + to_string(get<2>(p)) + \", \" + to_string(get<3>(p)) + \")\";",
"}",
"",
"void debug_out() { cerr << endl; }",
"",
"template <typename Head, typename... Tail>",
"void debug_out(Head H, Tail... T)",
"{",
" cerr << \" \" << to_string(H);",
" debug_out(T...);",
"}",
"",
"#define D(...) cerr << \"[\" << #__VA_ARGS__ << \"]:\", debug_out(__VA_ARGS__);",
"#else",
"#define D(...) 42;",
"#endif",
"#define D1(...) 42;",
""
],
"description": "acm debug func by torist"
},
"acm_IO": {
"prefix": "acm_IO",
"body": [
"",
"namespace IO",
"{",
"#define FASTIO \\",
" ios::sync_with_stdio(0); \\",
" cin.tie(0); \\",
" cout.tie(0); \\",
" cout << fixed << setprecision(10);",
"using namespace std;",
"",
"inline bool read()",
"{",
" return true;",
"}",
"",
"template <class T1, class... T2>",
"bool read(T1 &a, T2 &... rest)",
"{",
" return (cin >> a) ? read(rest...) : 0;",
"}",
"",
"template <class... T>",
"bool read(char *a, T &... rest)",
"{",
" return (cin >> a) ? read(rest...) : 0;",
"}",
"",
"template <class... T>",
"bool read(char *a, char *b, T &... rest)",
"{",
" return (cin >> a >> b) ? read(rest...) : 0;",
"}",
"",
"template <class... T>",
"bool read(char *a, char *b, char *c, T &... rest)",
"{",
" return (cin >> a >> b >> c) ? read(rest...) : 0;",
"}",
"",
"void _put()",
"{",
" cout << '\\n';",
"}",
"template <class T1, class... T2>",
"void _put(const T1 num, const T2... rest)",
"{",
" cout << ' ' << num;",
" _put(rest...);",
"}",
"",
"void put()",
"{",
" cout << '\\n';",
"}",
"",
"template <class T1, class... T2>",
"void put(const T1 num, const T2... rest)",
"{",
" cout << num;",
" _put(rest...);",
"}",
"",
"void puta()",
"{",
"}",
"",
"template <class T1, class... T2>",
"void puta(const T1 num, const T2... rest)",
"{",
" cout << num << ' ';",
" puta(rest...);",
"}",
"",
"void yes()",
"{",
" put(\"YES\");",
"}",
"",
"void no()",
"{",
" put(\"NO\");",
"}",
"",
"void ff()",
"{",
" cout.flush();",
"}",
"",
"} // namespace IO",
"using namespace IO;",
""
]
},
"acm_const": {
"prefix": "acm_const",
"body": [
"const int mod = 998244353, inv2 = (mod + 1) / 2; // 998244353 , 1e9+7 ,时刻取模",
"const int maxn = 2e5 + 10;",
"const int inf = 1e9 + 3;",
""
],
"description": "constant"
},
"acm_define": {
"prefix": "acm_define",
"body": [
"using namespace IO;",
"using db = double;",
"using vi = vector<int>;",
"using pii = pair<int, int>;",
"using ll = long long;",
"using pll = pair<ll, ll>;",
"using vl = vector<ll>;",
"using cp = complex<double>;",
"#define pb push_back",
"#define mp make_pair",
"#define fi first",
"#define se second",
"#define eb emplace_back",
"#define ins insert",
"#define cmax(a, b) ((a) = max((a), (b)))",
"#define cmin(a, b) ((a) = min((a), (b)))"
],
"description": "some using sentence and define sentence"
},
"temp_head": {
"prefix": "temp_head",
"body": [
"#include <bits/stdc++.h>\r",
"using namespace std;\r",
"using db = double;\r",
"using vi = vector<int>;\r",
"using pii = pair<int, int>;\r",
"using ll = long long;\r",
"using pll = pair<ll, ll>;\r",
"using vl = vector<ll>;\r",
"using cp = complex<double>;\r",
"#define pb push_back\r",
"#define mp make_pair\r",
"#define fi first\r",
"#define se second\r",
"#define eb emplace_back\r",
"#define ins insert\r",
"#define cmax(a, b) ((a) = max((a), (b)))\r",
"#define cmin(a, b) ((a) = min((a), (b)))\r",
"//template head"
],
"description": "template head"
}
}
{
"": {
"prefix": "",
"body": [
"",
"void prepare()",
"{",
"}"
],
"description": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment