update
This commit is contained in:
parent
a03bf550ce
commit
4956fe8431
5 changed files with 31 additions and 8 deletions
|
|
@ -12,6 +12,22 @@ snippet cl "console.log( ... )"
|
|||
console.log($0);
|
||||
endsnippet
|
||||
|
||||
snippet cw "console.warn( ... )"
|
||||
console.warn($0);
|
||||
endsnippet
|
||||
|
||||
snippet f "for (...)"
|
||||
for (let index=0; index < $1; index += 1) {
|
||||
$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet fr "for (...)"
|
||||
for (let index=${1:0}; index ${2:<} $3; index ${4:+=} ${5:1}) {
|
||||
$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet .fe "...forEach( ... );" i
|
||||
.forEach(($1) => {
|
||||
$0
|
||||
|
|
|
|||
|
|
@ -8,14 +8,22 @@ snippet c "``` ..."
|
|||
endsnippet
|
||||
|
||||
# latex
|
||||
snippet vec "vector"
|
||||
snippet vec "vector 1x2"
|
||||
\\begin{bmatrix} $1 \\\\ $2 \\end{bmatrix}$0
|
||||
endsnippet
|
||||
|
||||
snippet mx "matrix"
|
||||
snippet vec3 "vector 1x3"
|
||||
\\begin{bmatrix} $1 \\\\ $2 \\\\ $3 \\end{bmatrix}$0
|
||||
endsnippet
|
||||
|
||||
snippet mx "matrix 2x2"
|
||||
\\begin{bmatrix} $1 & $2 \\\\ $3 & $4 \\end{bmatrix}$0
|
||||
endsnippet
|
||||
|
||||
snippet mx3 "matrix 3x3"
|
||||
\\begin{bmatrix} $1 & $2 & $3 \\\\ $4 & $5 & $6 \\\\ $7 & $8 & $9 \\end{bmatrix}$0
|
||||
endsnippet
|
||||
|
||||
snippet lim "limit"
|
||||
\\lim{$1 \\to $2}$0
|
||||
endsnippet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue