main main for loop for $1.begin beginend do .. while do period]]> #endif if .. if #include ".." inc $0]]> #include <..> Inc namespace .. namespace v; if (FILE* fp = fopen (${1:"filename"}, "r")) { uint8_t buf[1024]; while (size_t len = fread (buf, 1, sizeof (buf), fp)) v.insert (v.end(), buf, buf + len); fclose(fp); } $0]]> Read File Into Vector readfile ${3:map}; $0]]> std::map map ${2:v}; $0]]> std::vector vector struct .. struct ]]> template <typename ..> template ]} * This file is part of ${2:} * * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: import pwd, os try: return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] except KeyError: return '' > * * ${2} is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ${2} is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ${2}; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301 USA */ $0]]> gpl GPL License ]} * This file is part of ${2:} * * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: import pwd, os try: return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] except KeyError: return '' > * * ${2} is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * ${2} is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $0]]> lgpl LGPL License td typedef while while