sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #include <bits/stdc++.h> | |
| using namespace std; | |
| #define endl '\n' | |
| #define print(x) cout << #x << " = " << x << endl | |
| void run(){ | |
| string s; | |
| cin >> s; |
| { | |
| "cmd" : ["g++ -std=c++17 \"$file_name\" && timeout 10s ./a.out <~/Documents/input.txt | head -n 2000000 | head -c 5000000 >~/Documents/output.txt"], | |
| "selector" : "source.c,source.cpp,source.c++", | |
| "shell": true, | |
| "working_dir" : "$file_path" | |
| } |
| { | |
| "clients": { | |
| "clangd ": { | |
| "enabled": true, | |
| "command": [ | |
| "clangd", // you may use an absolute path for this clangd executable | |
| "-function-arg-placeholders=0", | |
| "-header-insertion-decorators=1", | |
| "-header-insertion=never", | |
| "-index", |
| // SublimeLinter Settings - User | |
| { | |
| "linters": | |
| { | |
| "gcc": { | |
| "disable": false, | |
| "executable": ["gcc"], | |
| "args": ["-fsyntax-only", "-std=c90"], | |
| "I": [ | |
| "${file_path}/include", |
| { | |
| "cmd" : ["g++ -std=c++17 \"$file_name\" && timeout 10s ./a.out <~/Documents/input.txt | head -n 2000000 | head -c 5000000 >~/Documents/output.txt"], | |
| "selector" : "source.c,source.cpp,source.c++", | |
| "shell": true, | |
| "working_dir" : "$file_path" | |
| } |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| #define __ ios_base::sync_with_stdio(0);cin.tie(0) | |
| #define print(args...) \ | |
| { \ | |
| string _s = #args; \ | |
| replace(_s.begin(), _s.end(), ',', ' '); \ | |
| stringstream _ss(_s); \ | |
| istream_iterator<string> _it(_ss); err(_it, args); \ |
| <snippet> | |
| <content><![CDATA[ | |
| #define sz 1'000'000'00 | |
| #define check(x) siv[x >> 5] & (1 << (x & 31)) | |
| #define set(x) siv[x >> 5] |= (1 << (x & 31)) | |
| int siv[sz >> 5]; | |
| vector<int>primes={2}; | |
| void sieve(){ |
| [ | |
| { "keys": ["f5"], "command": "code_one"}, | |
| { "keys": ["f6"], "command": "code_two"}, | |
| {"keys" : ["ctrl+alt+b"] , "command": "cancel_build"}, | |
| // Open a terminal tab at current file directory | |
| { | |
| "keys": ["ctrl+alt+t"], "command": "terminus_open", "args": { | |
| "cwd": "${file_path:${folder}}" | |
| } | |
| }, |
| <snippet> | |
| <content><![CDATA[ | |
| for( int i$2=0$1 ; i$2<n$3 ; i$2++$4 ) | |
| $5 | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>forr</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.python</scope> --> |