Skip to content

Commit 1572f98

Browse files
committed
New Release
1 parent 4899b4e commit 1572f98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+11134
-2142
lines changed

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"liveServer.settings.https": {
3+
"enable": true, //set it true to enable the feature.
4+
"cert": "D:\\Dev\\server.crt", //full path of the certificate
5+
"key": "D:\\Dev\\server.key", //full path of the private key
6+
"passphrase": "1234"
7+
}
8+
}

dist/main.js

+146-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/snippets/abc.snippets

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
snippet zupfnoter.print
2+
%%%%hn.print {"startpos": ${1:pos_y}, "t":"${2:title}", "v":[${3:voices}], "s":[[${4:syncvoices}1,2]], "f":[${5:flowlines}], "sf":[${6:subflowlines}], "j":[${7:jumplines}]}
3+
4+
snippet zupfnoter.note
5+
%%%%hn.note {"pos": [${1:pos_x},${2:pos_y}], "text": "${3:text}", "style": "${4:style}"}
6+
7+
snippet zupfnoter.annotation
8+
%%%%hn.annotation {"id": "${1:id}", "pos": [${2:pos}], "text": "${3:text}"}
9+
10+
snippet zupfnoter.lyrics
11+
%%%%hn.lyrics {"pos": [${1:x_pos},${2:y_pos}]}
12+
13+
snippet zupfnoter.legend
14+
%%%%hn.legend {"pos": [${1:x_pos},${2:y_pos}]}
15+
16+
17+
18+
snippet zupfnoter.target
19+
"^:${1:target}"
20+
21+
snippet zupfnoter.goto
22+
"^@${1:target}@${2:distance}"
23+
24+
snippet zupfnoter.annotationref
25+
"^#${1:target}"
26+
27+
snippet zupfnoter.annotation
28+
"^!${1:text}@${2:x_offset},${3:y_offset}"
29+

dist/snippets/actionscript.snippets

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
snippet main
2+
package {
3+
import flash.display.*;
4+
import flash.Events.*;
5+
6+
public class Main extends Sprite {
7+
public function Main ( ) {
8+
trace("start");
9+
stage.scaleMode = StageScaleMode.NO_SCALE;
10+
stage.addEventListener(Event.RESIZE, resizeListener);
11+
}
12+
13+
private function resizeListener (e:Event):void {
14+
trace("The application window changed size!");
15+
trace("New width: " + stage.stageWidth);
16+
trace("New height: " + stage.stageHeight);
17+
}
18+
19+
}
20+
21+
}
22+
snippet class
23+
${1:public|internal} class ${2:name} ${3:extends } {
24+
public function $2 ( ) {
25+
("start");
26+
}
27+
}
28+
snippet all
29+
package name {
30+
31+
${1:public|internal|final} class ${2:name} ${3:extends } {
32+
private|public| static const FOO = "abc";
33+
private|public| static var BAR = "abc";
34+
35+
// class initializer - no JIT !! one time setup
36+
if Cababilities.os == "Linux|MacOS" {
37+
FOO = "other";
38+
}
39+
40+
// constructor:
41+
public function $2 ( ){
42+
super2();
43+
trace("start");
44+
}
45+
public function name (a, b...){
46+
super.name(..);
47+
lable:break
48+
}
49+
}
50+
}
51+
52+
function A(){
53+
// A can only be accessed within this file
54+
}
55+
snippet switch
56+
switch(${1}){
57+
case ${2}:
58+
${3}
59+
break;
60+
default:
61+
}
62+
snippet case
63+
case ${1}:
64+
${2}
65+
break;
66+
snippet package
67+
package ${1:package}{
68+
${2}
69+
}
70+
snippet wh
71+
while ${1:cond}{
72+
${2}
73+
}
74+
snippet do
75+
do {
76+
${2}
77+
} while (${1:cond})
78+
snippet while
79+
while ${1:cond}{
80+
${2}
81+
}
82+
snippet for enumerate names
83+
for (${1:var} in ${2:object}){
84+
${3}
85+
}
86+
snippet for enumerate values
87+
for each (${1:var} in ${2:object}){
88+
${3}
89+
}
90+
snippet get_set
91+
function get ${1:name} {
92+
return ${2}
93+
}
94+
function set $1 (newValue) {
95+
${3}
96+
}
97+
snippet interface
98+
interface name {
99+
function method(${1}):${2:returntype};
100+
}
101+
snippet try
102+
try {
103+
${1}
104+
} catch (error:ErrorType) {
105+
${2}
106+
} finally {
107+
${3}
108+
}
109+
# For Loop (same as c.snippet)
110+
snippet for for (..) {..}
111+
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
112+
${4:/* code */}
113+
}
114+
# Custom For Loop
115+
snippet forr
116+
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
117+
${5:/* code */}
118+
}
119+
# If Condition
120+
snippet if
121+
if (${1:/* condition */}) {
122+
${2:/* code */}
123+
}
124+
snippet el
125+
else {
126+
${1}
127+
}
128+
# Ternary conditional
129+
snippet t
130+
${1:/* condition */} ? ${2:a} : ${3:b}
131+
snippet fun
132+
function ${1:function_name}(${2})${3}
133+
{
134+
${4:/* code */}
135+
}
136+
# FlxSprite (usefull when using the flixel library)
137+
snippet FlxSprite
138+
package
139+
{
140+
import org.flixel.*
141+
142+
public class ${1:ClassName} extends ${2:FlxSprite}
143+
{
144+
public function $1(${3: X:Number, Y:Number}):void
145+
{
146+
super(X,Y);
147+
${4: //code...}
148+
}
149+
150+
override public function update():void
151+
{
152+
super.update();
153+
${5: //code...}
154+
}
155+
}
156+
}
157+

dist/snippets/c_cpp.snippets

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
## STL Collections
2+
# std::array
3+
snippet array
4+
std::array<${1:T}, ${2:N}> ${3};${4}
5+
# std::vector
6+
snippet vector
7+
std::vector<${1:T}> ${2};${3}
8+
# std::deque
9+
snippet deque
10+
std::deque<${1:T}> ${2};${3}
11+
# std::forward_list
12+
snippet flist
13+
std::forward_list<${1:T}> ${2};${3}
14+
# std::list
15+
snippet list
16+
std::list<${1:T}> ${2};${3}
17+
# std::set
18+
snippet set
19+
std::set<${1:T}> ${2};${3}
20+
# std::map
21+
snippet map
22+
std::map<${1:Key}, ${2:T}> ${3};${4}
23+
# std::multiset
24+
snippet mset
25+
std::multiset<${1:T}> ${2};${3}
26+
# std::multimap
27+
snippet mmap
28+
std::multimap<${1:Key}, ${2:T}> ${3};${4}
29+
# std::unordered_set
30+
snippet uset
31+
std::unordered_set<${1:T}> ${2};${3}
32+
# std::unordered_map
33+
snippet umap
34+
std::unordered_map<${1:Key}, ${2:T}> ${3};${4}
35+
# std::unordered_multiset
36+
snippet umset
37+
std::unordered_multiset<${1:T}> ${2};${3}
38+
# std::unordered_multimap
39+
snippet ummap
40+
std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}
41+
# std::stack
42+
snippet stack
43+
std::stack<${1:T}> ${2};${3}
44+
# std::queue
45+
snippet queue
46+
std::queue<${1:T}> ${2};${3}
47+
# std::priority_queue
48+
snippet pqueue
49+
std::priority_queue<${1:T}> ${2};${3}
50+
##
51+
## Access Modifiers
52+
# private
53+
snippet pri
54+
private
55+
# protected
56+
snippet pro
57+
protected
58+
# public
59+
snippet pub
60+
public
61+
# friend
62+
snippet fr
63+
friend
64+
# mutable
65+
snippet mu
66+
mutable
67+
##
68+
## Class
69+
# class
70+
snippet cl
71+
class ${1:`Filename('$1', 'name')`}
72+
{
73+
public:
74+
$1(${2});
75+
~$1();
76+
77+
private:
78+
${3:/* data */}
79+
};
80+
# member function implementation
81+
snippet mfun
82+
${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
83+
${5:/* code */}
84+
}
85+
# namespace
86+
snippet ns
87+
namespace ${1:`Filename('', 'my')`} {
88+
${2}
89+
} /* namespace $1 */
90+
##
91+
## Input/Output
92+
# std::cout
93+
snippet cout
94+
std::cout << ${1} << std::endl;${2}
95+
# std::cin
96+
snippet cin
97+
std::cin >> ${1};${2}
98+
##
99+
## Iteration
100+
# for i
101+
snippet fori
102+
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
103+
${4:/* code */}
104+
}${5}
105+
106+
# foreach
107+
snippet fore
108+
for (${1:auto} ${2:i} : ${3:container}) {
109+
${4:/* code */}
110+
}${5}
111+
# iterator
112+
snippet iter
113+
for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {
114+
${6}
115+
}${7}
116+
117+
# auto iterator
118+
snippet itera
119+
for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {
120+
${2:std::cout << *$1 << std::endl;}
121+
}${3}
122+
##
123+
## Lambdas
124+
# lamda (one line)
125+
snippet ld
126+
[${1}](${2}){${3:/* code */}}${4}
127+
# lambda (multi-line)
128+
snippet lld
129+
[${1}](${2}){
130+
${3:/* code */}
131+
}${4}

0 commit comments

Comments
 (0)