]> git.rmz.io Git - dotfiles.git/blob - vim/ultisnips/all.snippets
zsh: history is data, not cache (REQUIRES MANUAL INTERVENTION)
[dotfiles.git] / vim / ultisnips / all.snippets
1 global !p
2 import subprocess, vim
3
4 def _parse_comments(s):
5 """ Parses vim's comments option to extract comment format """
6 i = iter(s.split(","))
7
8 rv = []
9 try:
10 while True:
11 # get the flags and text of a comment part
12 flags, text = next(i).split(':', 1)
13
14 if len(flags) == 0:
15 rv.append((text, text, text, text, ""))
16 # parse 3-part comment, but ignore those with O flag
17 elif 's' in flags and 'O' not in flags:
18 ctriple = []
19 indent = ""
20
21 if flags[-1] in string.digits:
22 indent = " " * int(flags[-1])
23 ctriple.append(text)
24
25 flags,text = next(i).split(':', 1)
26 assert(flags[0] == 'm')
27 ctriple.append(text)
28
29 flags,text = next(i).split(':', 1)
30 assert(flags[0] == 'e')
31 ctriple.append(text)
32
33 flags,text = next(i).split(':', 1)
34 assert(len(flags) == 0)
35 ctriple.append(text)
36
37 ctriple.append(indent)
38 rv.insert(0, ctriple)
39 elif 'b' in flags and 'f' not in flags:
40 if len(text) == 1:
41 rv.insert(0, (text,text,text, text, ""))
42 except StopIteration:
43 return rv
44
45 def _get_comment_format():
46 """ Returns a 4-element tuple representing the comment format for
47 the current file. """
48 return _parse_comments(vim.eval("&comments"))[0]
49
50 b, m, e, c, i = _get_comment_format()
51
52 def _git_user_name():
53 try:
54 snip.rv = subprocess.check_output(["git", "config", "user.name"]).strip()
55 except CalledProcessError:
56 snip.rv = "John Doe"
57
58 def _git_user_email():
59 try:
60 snip.rv = subprocess.check_output(["git", "config", "user.email"]).strip()
61 except CalledProcessError:
62 snip.rv = "jdoe@example.com"
63 endglobal
64
65
66 snippet fix "FIXME" w
67 `!p snip.rv = c`FIXME ${0} (sb:`!v strftime("%Y%m%d")`)
68 endsnippet
69
70 snippet todo "TODO" w
71 `!p snip.rv = c`TODO ${0} (sb:`!v strftime("%Y%m%d")`)
72 endsnippet
73
74 snippet GPL2 "GPL2 License" b
75 `!p snip.rv = b`
76 `!p snip.rv = i + m` ${1:One line to give the program's name and a brief description.}
77 `!p snip.rv = i + m`
78 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
79 `!p snip.rv = i + m`
80 `!p snip.rv = i + m` This program is free software; you can redistribute it and/or modify
81 `!p snip.rv = i + m` it under the terms of the GNU General Public License as published by
82 `!p snip.rv = i + m` the Free Software Foundation; either version 2 of the License, or
83 `!p snip.rv = i + m` (at your option) any later version.
84 `!p snip.rv = i + m`
85 `!p snip.rv = i + m` This program is distributed in the hope that it will be useful,
86 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
87 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
88 `!p snip.rv = i + m` GNU General Public License for more details.
89 `!p snip.rv = i + m`
90 `!p snip.rv = i + m` You should have received a copy of the GNU General Public License
91 `!p snip.rv = i + m` along with this program; if not, see <http://www.gnu.org/licenses/>.
92 `!p snip.rv = i + e`
93 ${0}
94 endsnippet
95
96 snippet LGPL2 "LGPL2 License" b
97 `!p snip.rv = b`
98 `!p snip.rv = i + m` ${1:One line to give the program's name and a brief description.}
99 `!p snip.rv = i + m`
100 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
101 `!p snip.rv = i + m`
102 `!p snip.rv = i + m` This library is free software; you can redistribute it and/or modify
103 `!p snip.rv = i + m` it under the terms of the GNU Lesser General Public License as published
104 `!p snip.rv = i + m` by the Free Software Foundation; either version 2.1 of the License, or
105 `!p snip.rv = i + m` (at your option) any later version.
106 `!p snip.rv = i + m`
107 `!p snip.rv = i + m` This library is distributed in the hope that it will be useful,
108 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
109 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
110 `!p snip.rv = i + m` GNU Lesser General Public License for more details.
111 `!p snip.rv = i + m`
112 `!p snip.rv = i + m` You should have received a copy of the GNU Lesser General Public License
113 `!p snip.rv = i + m` along with this library; if not, see <http://www.gnu.org/licenses/>.
114 `!p snip.rv = i + e`
115 ${0}
116 endsnippet
117
118 snippet GPL3 "GPL3 License" b
119 `!p snip.rv = b`
120 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description.}
121 `!p snip.rv = i + m`
122 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
123 `!p snip.rv = i + m`
124 `!p snip.rv = i + m` This program is free software: you can redistribute it and/or modify
125 `!p snip.rv = i + m` it under the terms of the GNU General Public License as published by
126 `!p snip.rv = i + m` the Free Software Foundation, either version 3 of the License, or
127 `!p snip.rv = i + m` (at your option) any later version.
128 `!p snip.rv = i + m`
129 `!p snip.rv = i + m` This program is distributed in the hope that it will be useful,
130 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
131 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
132 `!p snip.rv = i + m` GNU General Public License for more details.
133 `!p snip.rv = i + m`
134 `!p snip.rv = i + m` You should have received a copy of the GNU General Public License
135 `!p snip.rv = i + m` along with this program. If not, see <http://www.gnu.org/licenses/>.
136 `!p snip.rv = i + e`
137 ${0}
138 endsnippet
139
140 snippet LGPL3 "LGPL3 License" b
141 `!p snip.rv = b`
142 `!p snip.rv = i + m` ${1:One line to give the program's name and a brief description.}
143 `!p snip.rv = i + m`
144 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
145 `!p snip.rv = i + m`
146 `!p snip.rv = i + m` This library is free software; you can redistribute it and/or modify
147 `!p snip.rv = i + m` it under the terms of the GNU Lesser General Public License as published
148 `!p snip.rv = i + m` by the Free Software Foundation; either version 3 of the License, or
149 `!p snip.rv = i + m` (at your option) any later version.
150 `!p snip.rv = i + m`
151 `!p snip.rv = i + m` This library is distributed in the hope that it will be useful,
152 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
153 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
154 `!p snip.rv = i + m` GNU Lesser General Public License for more details.
155 `!p snip.rv = i + m`
156 `!p snip.rv = i + m` You should have received a copy of the GNU Lesser General Public License
157 `!p snip.rv = i + m` along with this library; if not, see <http://www.gnu.org/licenses/>.
158 `!p snip.rv = i + e`
159 ${0}
160 endsnippet
161
162 snippet AGPL3 "AGPL3 License" b
163 `!p snip.rv = b`
164 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description.}
165 `!p snip.rv = i + m`
166 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
167 `!p snip.rv = i + m`
168 `!p snip.rv = i + m` This program is free software: you can redistribute it and/or modify
169 `!p snip.rv = i + m` it under the terms of the GNU Affero General Public License as
170 `!p snip.rv = i + m` published by the Free Software Foundation, either version 3 of the
171 `!p snip.rv = i + m` License, or (at your option) any later version.
172 `!p snip.rv = i + m`
173 `!p snip.rv = i + m` This program is distributed in the hope that it will be useful,
174 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
175 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
176 `!p snip.rv = i + m` GNU Affero General Public License for more details.
177 `!p snip.rv = i + m`
178 `!p snip.rv = i + m` You should have received a copy of the GNU Affero General Public License
179 `!p snip.rv = i + m` along with this program. If not, see <http://www.gnu.org/licenses/>.
180 `!p snip.rv = i + e`
181 ${0}
182 endsnippet
183
184 snippet GMGPL "GMGPL linking exception License" b
185 `!p snip.rv = b`
186 `!p snip.rv = i + m` As a special exception, if other files instantiate generics from
187 `!p snip.rv = i + m` this unit, or you link this unit with other files to produce an
188 `!p snip.rv = i + m` executable, this unit does not by itself cause the resulting
189 `!p snip.rv = i + m` executable to be covered by the GNU General Public License.
190 `!p snip.rv = i + m` This exception does not however invalidate any other reasons why the
191 `!p snip.rv = i + m` executable file might be covered by the GNU Public License.
192 `!p snip.rv = i + e`
193 ${0}
194 endsnippet
195
196 snippet BSD2 "BSD2 License" b
197 `!p snip.rv = b`
198 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
199 `!p snip.rv = i + m`
200 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
201 `!p snip.rv = i + m` All rights reserved.
202 `!p snip.rv = i + m`
203 `!p snip.rv = i + m` Redistribution and use in source and binary forms, with or without
204 `!p snip.rv = i + m` modification, are permitted provided that the following conditions are met:
205 `!p snip.rv = i + m` 1. Redistributions of source code must retain the above copyright
206 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer.
207 `!p snip.rv = i + m` 2. Redistributions in binary form must reproduce the above copyright
208 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer in the
209 `!p snip.rv = i + m` documentation and/or other materials provided with the distribution.
210 `!p snip.rv = i + m`
211 `!p snip.rv = i + m` THIS SOFTWARE IS PROVIDED BY $2 ''AS IS'' AND ANY
212 `!p snip.rv = i + m` EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
213 `!p snip.rv = i + m` WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
214 `!p snip.rv = i + m` DISCLAIMED. IN NO EVENT SHALL $2 BE LIABLE FOR ANY
215 `!p snip.rv = i + m` DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
216 `!p snip.rv = i + m` (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
217 `!p snip.rv = i + m` LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
218 `!p snip.rv = i + m` ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
219 `!p snip.rv = i + m` (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
220 `!p snip.rv = i + m` SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
221 `!p snip.rv = i + m`
222 `!p snip.rv = i + m`
223 `!p snip.rv = i + m` The views and conclusions contained in the software and documentation
224 `!p snip.rv = i + m` are those of the authors and should not be interpreted as representing
225 `!p snip.rv = i + m` official policies, either expressedor implied, of $2.
226 `!p snip.rv = i + e`
227 ${0}
228 endsnippet
229
230 snippet BSD3 "BSD3 License" b
231 `!p snip.rv = b`
232 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
233 `!p snip.rv = i + m`
234 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
235 `!p snip.rv = i + m` All rights reserved.
236 `!p snip.rv = i + m`
237 `!p snip.rv = i + m` Redistribution and use in source and binary forms, with or without
238 `!p snip.rv = i + m` modification, are permitted provided that the following conditions are met:
239 `!p snip.rv = i + m` 1. Redistributions of source code must retain the above copyright
240 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer.
241 `!p snip.rv = i + m` 2. Redistributions in binary form must reproduce the above copyright
242 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer in the
243 `!p snip.rv = i + m` documentation and/or other materials provided with the distribution.
244 `!p snip.rv = i + m` 3. Neither the name of the ${4:organization} nor the
245 `!p snip.rv = i + m` names of its contributors may be used to endorse or promote products
246 `!p snip.rv = i + m` derived from this software without specific prior written permission.
247 `!p snip.rv = i + m`
248 `!p snip.rv = i + m` THIS SOFTWARE IS PROVIDED BY $2 ''AS IS'' AND ANY
249 `!p snip.rv = i + m` EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
250 `!p snip.rv = i + m` WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
251 `!p snip.rv = i + m` DISCLAIMED. IN NO EVENT SHALL $2 BE LIABLE FOR ANY
252 `!p snip.rv = i + m` DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
253 `!p snip.rv = i + m` (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
254 `!p snip.rv = i + m` LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
255 `!p snip.rv = i + m` ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
256 `!p snip.rv = i + m` (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
257 `!p snip.rv = i + m` SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
258 `!p snip.rv = i + e`
259 ${0}
260 endsnippet
261
262 snippet BSD4 "BSD4 License" b
263 `!p snip.rv = b`
264 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
265 `!p snip.rv = i + m`
266 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
267 `!p snip.rv = i + m` All rights reserved.
268 `!p snip.rv = i + m`
269 `!p snip.rv = i + m` Redistribution and use in source and binary forms, with or without
270 `!p snip.rv = i + m` modification, are permitted provided that the following conditions are met:
271 `!p snip.rv = i + m` 1. Redistributions of source code must retain the above copyright
272 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer.
273 `!p snip.rv = i + m` 2. Redistributions in binary form must reproduce the above copyright
274 `!p snip.rv = i + m` notice, this list of conditions and the following disclaimer in the
275 `!p snip.rv = i + m` documentation and/or other materials provided with the distribution.
276 `!p snip.rv = i + m` 3. All advertising materials mentioning features or use of this software
277 `!p snip.rv = i + m` must display the following acknowledgement:
278 `!p snip.rv = i + m` This product includes software developed by the ${4:organization}.
279 `!p snip.rv = i + m` 4. Neither the name of the $4 nor the
280 `!p snip.rv = i + m` names of its contributors may be used to endorse or promote products
281 `!p snip.rv = i + m` derived from this software without specific prior written permission.
282 `!p snip.rv = i + m`
283 `!p snip.rv = i + m` THIS SOFTWARE IS PROVIDED BY $2 ''AS IS'' AND ANY
284 `!p snip.rv = i + m` EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
285 `!p snip.rv = i + m` WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
286 `!p snip.rv = i + m` DISCLAIMED. IN NO EVENT SHALL $2 BE LIABLE FOR ANY
287 `!p snip.rv = i + m` DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
288 `!p snip.rv = i + m` (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
289 `!p snip.rv = i + m` LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
290 `!p snip.rv = i + m` ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291 `!p snip.rv = i + m` (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
292 `!p snip.rv = i + m` SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
293 `!p snip.rv = i + e`
294 ${0}
295 endsnippet
296
297 snippet MIT "MIT License" b
298 `!p snip.rv = b`
299 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
300 `!p snip.rv = i + m`
301 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
302 `!p snip.rv = i + m`
303 `!p snip.rv = i + m` Permission is hereby granted, free of charge, to any person obtaining
304 `!p snip.rv = i + m` a copy of this software and associated documentation files (the "Software"),
305 `!p snip.rv = i + m` to deal in the Software without restriction, including without limitation
306 `!p snip.rv = i + m` the rights to use, copy, modify, merge, publish, distribute, sublicense,
307 `!p snip.rv = i + m` and/or sell copies of the Software, and to permit persons to whom the
308 `!p snip.rv = i + m` Software is furnished to do so, subject to the following conditions:
309 `!p snip.rv = i + m`
310 `!p snip.rv = i + m` The above copyright notice and this permission notice shall be included
311 `!p snip.rv = i + m` in all copies or substantial portions of the Software.
312 `!p snip.rv = i + m`
313 `!p snip.rv = i + m` THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
314 `!p snip.rv = i + m` EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
315 `!p snip.rv = i + m` OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
316 `!p snip.rv = i + m` IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
317 `!p snip.rv = i + m` DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
318 `!p snip.rv = i + m` TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
319 `!p snip.rv = i + m` OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
320 `!p snip.rv = i + e`
321 ${0}
322 endsnippet
323
324 snippet APACHE "APACHE License" b
325 `!p snip.rv = b`
326 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
327 `!p snip.rv = i + m`
328 `!p snip.rv = i + m` Copyright `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
329 `!p snip.rv = i + m`
330 `!p snip.rv = i + m` Licensed under the Apache License, Version 2.0 (the "License");
331 `!p snip.rv = i + m` you may not use this file except in compliance with the License.
332 `!p snip.rv = i + m` You may obtain a copy of the License at
333 `!p snip.rv = i + m`
334 `!p snip.rv = i + m` http://www.apache.org/licenses/LICENSE-2.0
335 `!p snip.rv = i + m`
336 `!p snip.rv = i + m` Unless required by applicable law or agreed to in writing, software
337 `!p snip.rv = i + m` distributed under the License is distributed on an "AS IS" BASIS,
338 `!p snip.rv = i + m` WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
339 `!p snip.rv = i + m` See the License for the specific language governing permissions and
340 `!p snip.rv = i + m` limitations under the License.
341 `!p snip.rv = i + e`
342 ${0}
343 endsnippet
344
345 snippet BEERWARE "BEERWARE License" b
346 `!p snip.rv = b`
347 `!p snip.rv = i + m` ${1:one line to give the program's name and a brief description}
348 `!p snip.rv = i + m`
349 `!p snip.rv = i + m` Copyright `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
350 `!p snip.rv = i + m`
351 `!p snip.rv = i + m` Licensed under the "THE BEER-WARE LICENSE" (Revision 42):
352 `!p snip.rv = i + m` $2 wrote this file. As long as you retain this notice you
353 `!p snip.rv = i + m` can do whatever you want with this stuff. If we meet some day, and you think
354 `!p snip.rv = i + m` this stuff is worth it, you can buy me a beer or coffee in return
355 `!p snip.rv = i + e`
356 ${0}
357 endsnippet
358
359 snippet WTFPL "WTFPL License" b
360 `!p snip.rv = b`
361 `!p snip.rv = i + m` DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
362 `!p snip.rv = i + m` Version 2, December 2004
363 `!p snip.rv = i + m`
364 `!p snip.rv = i + m` Copyright `!v strftime("%Y")` ${1:`!p _git_user_name()`} <${2:`!p _git_user_email()`}>
365 `!p snip.rv = i + m`
366 `!p snip.rv = i + m` Everyone is permitted to copy and distribute verbatim or modified
367 `!p snip.rv = i + m` copies of this license document, and changing it is allowed as long
368 `!p snip.rv = i + m` as the name is changed.
369 `!p snip.rv = i + m`
370 `!p snip.rv = i + m` DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
371 `!p snip.rv = i + m` TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
372 `!p snip.rv = i + m`
373 `!p snip.rv = i + m` 0. You just DO WHAT THE FUCK YOU WANT TO.
374 `!p snip.rv = i + m`
375 `!p snip.rv = i + e`
376 ${0}
377 endsnippet
378
379 snippet MPL2 "MPL2 License" b
380 `!p snip.rv = b`
381 `!p snip.rv = i + m` This Source Code Form is subject to the terms of the Mozilla Public
382 `!p snip.rv = i + m` License, v. 2.0. If a copy of the MPL was not distributed with this
383 `!p snip.rv = i + m` file, You can obtain one at http://mozilla.org/MPL/2.0/.
384 `!p snip.rv = i + e`
385 ${0}
386 endsnippet
387
388 snippet AGPL "AGPL License" b
389 `!p snip.rv = b`
390 `!p snip.rv = i + m` ${1:One line to give the program's name and a brief description.}
391 `!p snip.rv = i + m`
392 `!p snip.rv = i + m` Copyright `!v &enc[:2] == "utf" ? "©" : "(c)"` `!v strftime("%Y")` ${2:`!p _git_user_name()`} <${3:`!p _git_user_email()`}>
393 `!p snip.rv = i + m`
394 `!p snip.rv = i + m` This program is free software: you can redistribute it and/or modify
395 `!p snip.rv = i + m` it under the terms of the GNU Affero General Public License as
396 `!p snip.rv = i + m` published by the Free Software Foundation, either version 3 of the
397 `!p snip.rv = i + m` License, or (at your option) any later version.
398 `!p snip.rv = i + m`
399 `!p snip.rv = i + m` This program is distributed in the hope that it will be useful,
400 `!p snip.rv = i + m` but WITHOUT ANY WARRANTY; without even the implied warranty of
401 `!p snip.rv = i + m` MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
402 `!p snip.rv = i + m` GNU Affero General Public License for more details.
403 `!p snip.rv = i + m`
404 `!p snip.rv = i + m` You should have received a copy of the GNU Affero General Public License
405 `!p snip.rv = i + m` along with this program. If not, see <http://www.gnu.org/licenses/>.
406 `!p snip.rv = i + e`
407 endsnippet