finally corrected
This commit is contained in:
parent
5eaeb49c94
commit
4bdf09708c
|
@ -3,7 +3,6 @@
|
|||
# key: proj
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
<project name="${1:test}" default="${2:compile}" basedir="${3:.}">
|
||||
|
||||
$0
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
# key: prop
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
<property name="${1:name}" value="${2:value}" />
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: target
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
<target name="${1:compile}" ${2:other}>
|
||||
$0
|
||||
</target>
|
|
@ -3,5 +3,4 @@
|
|||
# key: !
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#!/usr/bin/osascript
|
|
@ -3,5 +3,4 @@
|
|||
# key: ss
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <sstream>
|
|
@ -3,5 +3,4 @@
|
|||
# key: err
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
cerr << $0;
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: cin
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
cin >> $0;
|
|
@ -3,5 +3,4 @@
|
|||
# key: iter
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:std::vector<int>}::${2:const_}iterator ${3:iter};
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: cstd
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <cstdlib>
|
|
@ -3,5 +3,4 @@
|
|||
# key: dl
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
delete ${1:pointer};
|
|
@ -3,5 +3,4 @@
|
|||
# key: dla
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
delete[] ${1:arr};
|
|
@ -3,5 +3,4 @@
|
|||
# key: cast
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
check_and_cast<${1:Type} *>(${2:msg});
|
|
@ -3,7 +3,6 @@
|
|||
# key: enum
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
enum ${1:NAME}{
|
||||
$0
|
||||
};
|
|
@ -3,5 +3,4 @@
|
|||
# key: ignore
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:std::}cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
|
|
@ -3,5 +3,4 @@
|
|||
# key: il
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
inline $0
|
|
@ -3,7 +3,6 @@
|
|||
# key: mod
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
class ${1:Class} : public cSimpleModule
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: !=
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
bool ${1:MyClass}::operator!=(const $1 &other) const {
|
||||
return !(*this == other);
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
# key: +=
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:MyClass} & $1::operator+=(const $1 &rhs)
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: <<
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
ostream& operator<<(ostream& s, const ${1:type}& ${2:c})
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
# where this is a reference to myself
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:MyClass}& $1::operator=(const $1 &rhs) {
|
||||
// Check for self-assignment!
|
||||
if (this == &rhs) // Same object?
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: ==
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
bool ${1:MyClass}::operator==(const $1 &other) const {
|
||||
$0
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
# key: >>
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
istream& operator>>(istream& s, const ${1:type}& ${2:c})
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: pack
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
void cNetCommBuffer::pack(${1:type}) {
|
||||
|
||||
}
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: st
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
std::$0
|
|
@ -3,5 +3,4 @@
|
|||
# key: str
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <string>
|
|
@ -3,7 +3,6 @@
|
|||
# key: test_main
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: th
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
this
|
|
@ -3,5 +3,4 @@
|
|||
# key: throw
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
throw ${1:MyError}($0);
|
|
@ -3,7 +3,6 @@
|
|||
# key: try
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
try {
|
||||
$0
|
||||
} catch (${1:type}) {
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: type
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
typeid(${1:var}).name()
|
|
@ -3,7 +3,6 @@
|
|||
# key: apple
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#ifdef __APPLE__
|
||||
$0
|
||||
#endif
|
|
@ -3,6 +3,5 @@
|
|||
# key: ass
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <assert.h>
|
||||
$0
|
|
@ -3,5 +3,4 @@
|
|||
# key: compile
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-
|
|
@ -3,7 +3,6 @@
|
|||
# key: conf
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
configuration {
|
||||
$0
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
# key: do
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
do {
|
||||
$0
|
||||
} while (${1:condition});
|
|
@ -3,7 +3,6 @@
|
|||
# key: event
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
event void ${1:Boot.booted()
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: for
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
for (${1:i = 0}; ${2:i < N}; ${3:i++}) {
|
||||
$0
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: guard
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#ifndef ${1:NAME}_H
|
||||
#define $1_H
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: here
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
printf("here\n");
|
|
@ -3,5 +3,4 @@
|
|||
# key: #
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include $0
|
|
@ -3,7 +3,6 @@
|
|||
# key: inf
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
for (;;) {
|
||||
$0
|
||||
}
|
|
@ -3,6 +3,5 @@
|
|||
# key: ->
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:Module} -> ${2:Component};
|
||||
$0
|
|
@ -3,6 +3,5 @@
|
|||
# key: malloc
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
malloc(sizeof($1)${2: * ${3:3}});
|
||||
$0
|
|
@ -3,6 +3,5 @@
|
|||
# key: math
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <math.h>
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: mod
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
module ${1:Mod} @safe()
|
||||
{
|
||||
$0
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: packed
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
__attribute__((__packed__))$0
|
|
@ -3,5 +3,4 @@
|
|||
# key: pr
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
printf("${1:format string}"${2: ,a0,a1});
|
|
@ -3,7 +3,6 @@
|
|||
# key: standalone
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#ifdef STANDALONE
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
# key: io
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <stdio.h>
|
||||
$0
|
|
@ -3,5 +3,4 @@
|
|||
# key: std
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: str
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <string.h>
|
|
@ -3,5 +3,4 @@
|
|||
# key: {
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
{.${1:field} = ${2:value}$0};
|
|
@ -3,7 +3,6 @@
|
|||
# key: case
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
switch (${1:ch}) {
|
||||
case ${2:const}:
|
||||
${3:a = b};
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: ?
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
(${1:cond}) ? ${2:then} : ${3:else};
|
|
@ -3,7 +3,6 @@
|
|||
# key: test
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
START_TEST (${1:test_name}) {
|
||||
$0
|
||||
}
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: typedef
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
typedef ${1:type} ${2:alias};
|
|
@ -3,7 +3,6 @@
|
|||
# key: union
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
typedef union {
|
||||
$0
|
||||
} ${1:name};
|
|
@ -3,6 +3,5 @@
|
|||
# key: uni
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <unistd.h>
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: while
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
while (${1:condition}) {
|
||||
$0
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
# section for xorg.conf
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
Section "${1:Device}"
|
||||
$0
|
||||
EndSection
|
|
@ -3,5 +3,4 @@
|
|||
# key: ev
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
EV << "${1:string}"$0;
|
|
@ -3,5 +3,4 @@
|
|||
# key: emit
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
emit(${1:signal_id}, ${2:long});
|
|
@ -3,5 +3,4 @@
|
|||
# key: intuni
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
intuniform(${1:0}, ${2:1})
|
|
@ -3,5 +3,4 @@
|
|||
# key: math
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <cmath>
|
|
@ -3,5 +3,4 @@
|
|||
# key: nan
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
isnan(${1:x})
|
|
@ -3,5 +3,4 @@
|
|||
# key: omnet
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
#include <omnetpp.h>
|
|
@ -3,5 +3,4 @@
|
|||
# key: par
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:var} = par("${2:par}");
|
|
@ -3,5 +3,4 @@
|
|||
# key: sched
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
scheduleAt(simTime()+${1:1.0}, ${2:event});
|
|
@ -4,5 +4,4 @@
|
|||
# uniform distribution
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
uniform(${1:0}, ${2:1})
|
|
@ -3,7 +3,6 @@
|
|||
# key: def
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
(defun ${1:fun} (${2:args})
|
||||
${3:(interactive${4: "P"})}
|
||||
$0)
|
|
@ -3,5 +3,4 @@
|
|||
# key: hash
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
make-hash-table ${1:options}
|
|
@ -4,7 +4,6 @@
|
|||
# contributor: Andrea Crotti
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}"
|
||||
"call ($1-install-mode) again if this is changed")
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: <
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
"\\_<${1:word}\\_>"
|
|
@ -3,5 +3,4 @@
|
|||
# key: b
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
blist
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: h
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
help $0
|
|
@ -3,7 +3,6 @@
|
|||
# key: func
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
func ${1:fun}(${2:args}) {
|
||||
$0
|
||||
}
|
|
@ -3,6 +3,5 @@
|
|||
# key: imp
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
import ${1:package}
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: main
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
func main() {
|
||||
${1:fmt.Printf("Hello, 世界\n")}
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: map
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
map[${1:string}] ${2:int} {
|
||||
${3:"X": 100,}
|
||||
$0
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
# key: pr
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
fmt.Printf("${1:fmt}\n"${2:,str})
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: switch
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
switch {
|
||||
case ${1:cond}:
|
||||
$0
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
# key: var
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
var ${1:ok} ${2:bool}
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: class
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
class ${1:Class} {
|
||||
$0
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
# key: def
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
def ${1:method}(${2:args}) {
|
||||
$0
|
||||
}
|
|
@ -3,5 +3,4 @@
|
|||
# key: dict
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:dict} = [${2:key} : ${3:value}$0]
|
|
@ -3,7 +3,6 @@
|
|||
# key: for
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
for (${1:var} in ${2:iter}) {
|
||||
$0
|
||||
}
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
# key: pr
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
println ${1:"string"}
|
||||
$0
|
|
@ -3,7 +3,6 @@
|
|||
# key: times
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:10}.times {
|
||||
$0
|
||||
} .
|
|
@ -3,7 +3,6 @@
|
|||
# key: case
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
case ${1:var} of
|
||||
${2:cond} -> ${3:value}
|
||||
$0
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# key: doc
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
{-
|
||||
$0
|
||||
-}
|
|
@ -4,6 +4,5 @@
|
|||
# contributor: Andrea Crotti
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
${1:function-name} :: ${2:type}
|
||||
$1 ${3:arguments} $0
|
|
@ -3,5 +3,4 @@
|
|||
# key: import
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}}
|
|
@ -3,6 +3,5 @@
|
|||
# key: instance
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where
|
||||
$0
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: main
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
main = do $0
|
|
@ -3,6 +3,5 @@
|
|||
# key: mod
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
module ${1:Module} where
|
||||
$0
|
|
@ -3,6 +3,5 @@
|
|||
# key: class
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
class ${1:Class Name} where
|
||||
$0
|
|
@ -3,5 +3,4 @@
|
|||
# key: {
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
{-# ${1:PRAGMA} #-}
|
|
@ -3,5 +3,4 @@
|
|||
# key: pr
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
print $0
|
|
@ -3,7 +3,6 @@
|
|||
# key: apr_assert
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
if (Globals.useAssertions) {
|
||||
${1:assert ..};
|
||||
}
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
# key: author
|
||||
# contributor: Andrea crotti
|
||||
# --
|
||||
|
||||
@author Andrea Crotti, Marius Grysla, Oscar Dustmann
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue