Skip to content

Instantly share code, notes, and snippets.

@gbougakov
Created November 30, 2019 09:02
Show Gist options
  • Save gbougakov/ca67b57e10a5a513c3f7da5785a26cc4 to your computer and use it in GitHub Desktop.
Save gbougakov/ca67b57e10a5a513c3f7da5785a26cc4 to your computer and use it in GitHub Desktop.
{
"For loop from 0 to var": {
"prefix": ["forn"],
"body": [
"for (int i = 0; i < ${1:var}; i++)",
"{",
" $0",
"}"
]
},
"Boilerplate": {
"prefix": ["boiler"],
"body": ["#include <iostream>", "using namespace std;", "", "int main()", "{", " $0", "}"]
},
"Create variable and read stdin": {
"prefix": ["stdint"],
"body": ["int ${1:n};", "cin >> ${1:n};"]
},
"Sort vector": {
"prefix": ["sortv"],
"body": ["sort(${1:v}.begin(), ${1:v}.end());"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment