Skip to content

Instantly share code, notes, and snippets.

@dev-harsh1998
Created July 31, 2019 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dev-harsh1998/f9b219d0d12a7c1d62c452826cca9987 to your computer and use it in GitHub Desktop.
Save dev-harsh1998/f9b219d0d12a7c1d62c452826cca9987 to your computer and use it in GitHub Desktop.
just personal vs code template because i mess up lot and have to reinstall
{
"CPP1": {
"prefix": "hax",
"body": [
"/*",
"* वाह मोदी जी वाह!",
"* Author: dev-harsh1998",
"*/",
"#include<bits/stdc++.h>",
"using namespace std;",
"",
"typedef long long int lli;",
"typedef long double ld;",
"typedef vector<lli> v64;",
"",
"#define FOR(a,b) for(auto i=a;i<b;i++)",
"#define TEST int T;cin>>T;while(T--)",
"#define MIN2(a,b) (a < b ? a:b)",
"#define MIN3(a,b,c) (MIN2(MIN2(a,b),c))",
"#define MAX2(a,b) (a > b ? a:b)",
"#define MAX3(a,b,c) (MAX2(MAX2(a,b),c))",
"#define ISEVEN(a) (((a & 1) == 0) ? 1 : 0)",
"#define COUNT_OF(x) ((sizeof(x) / sizeof(0 [x])) / ((size_t)(!(sizeof(x) % sizeof(0 [x])))))",
"#define FAIO ios_base::sync_with_stdio(false); cin.tie(NULL);",
"#define mem(x,y) memset(x,y,sizeof(x))",
"#define all(x) x.begin(),x.end()",
"#define pb push_back",
"#define ever (; ;)",
"",
"int main(){",
" FAIO",
" $1",
" return 0;",
"}"
],
"description": "CPP"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment