-
Notifications
You must be signed in to change notification settings - Fork 1
/
snipppets.cson
54 lines (49 loc) · 1.52 KB
/
snipppets.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson.
'.source.cpp':
'Competitive Coding Template':
'prefix': 'hello'
'body': """
// Tanmay Singhal
#include <bits/stdc++.h>
#define pb emplace_back
#define in insert
#define ms(s, n) memset(s, n, sizeof(s))
#define FOR(i, a, b) for (long long i = (a); i < (b); i++)
#define FORd(i, a, b) for (long long i = (a) - 1; i >= (b); i--)
#define what_is(x) cerr << #x << " is " << x << endl;
#define fi first;
#define se second;
#define FORall(it, a) for (__typeof((a).begin()) it = (a).begin(); it != (a).end(); it++)
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const double pi = 2 * acos(0.0);
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
$1
}
"""