-
Notifications
You must be signed in to change notification settings - Fork 6
/
snippets.code-snippets
209 lines (209 loc) · 5.62 KB
/
snippets.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"Custom H2": {
"prefix": "ch2",
"body": [
"<custom-h2 text=\"$1\"></custom-h2>"
],
"description": "Custom header level 2"
},
"Custom H3": {
"prefix": "ch3",
"body": [
"<custom-h3 text=\"$1\"></custom-h3>"
],
"description": "Custom header level 3"
},
"IMG": {
"prefix": "img",
"body": [
"<img src=\"$1\" alt=\"$2\" />"
],
"description": "Complete IMG HTML tag"
},
"figcaption": {
"prefix": "figcaption",
"body": [
"<figcaption>$1</figcaption>"
],
"description": "The figcaption HTML tag"
},
"Better figure": {
"prefix": "figure",
"body": [
"<figure>",
" <img src=\"$1\" alt=\"$2\" />",
" <figcaption>$3</figcaption>",
"</figure>"
],
"description": "A more appropriate figure tag."
},
"Indented Paragraph": {
"prefix": "p-indent",
"body": [
"<p class=\"indented-paragraph\">$1</p>"
],
"description": "Indented paragraph"
},
"Italicized Paragraph": {
"prefix": "pem",
"body": [
"<p><em>$1</em></p>"
],
"description": "Italicized paragraph."
},
"foot-note": {
"prefix": "foot-note",
"body": [
"<foot-note text=\"$1\"></foot-note>"
],
"description": "The custom foot-note used in the fanaro.io website."
},
"Glift Import": {
"prefix": "glift_import",
"body": [
"<script src=\"../../assets/glift_1_1_2.min.js\"></script>"
],
"description": "Glift's script import for the project."
},
"Glift SGF": {
"prefix": "glift_sgf",
"body": [
"<div class=\"SGF\" id=\"SGF\"></div>",
"<script>",
" glift.create({",
" divId: \"SGF\",",
" sgf: \"${1:game-name}\",",
" });",
"</script>"
],
"description": "Glift SGF Viewer"
},
"WGo.js SGF": {
"prefix": "wgo_sgf",
"body": [
"<div",
" data-wgo=\"$1\"",
" data-wgo-board=\"stoneHandler: WGo.Board.drawHandlers.NORMAL,",
" background: '../../assets/wgo/textures/wood2.jpg'\"",
" class=\"SGF\"",
">",
" <p>",
" Your browser doesn't support the WGo.js Player. Please use a more",
" modern browser, like Brave, Chrome, Firefox or Edge.",
" </p>",
"</div>",
],
"description": "WGo.js SGF Viewer"
},
"WGo.js Import": {
"prefix": "wgo_import",
"body": [
"<script type=\"text/javascript\" src=\"../../assets/wgo/wgo.js\"></script>",
"<script type=\"text/javascript\" src=\"../../assets/wgo/kifu.js\"></script>",
"<script type=\"text/javascript\" src=\"../../assets/wgo/sgfparser.js\"></script>",
"<script type=\"text/javascript\" src=\"../../assets/wgo/player.js\"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/basicplayer.js\"",
"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/basicplayer.component.js\"",
"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/basicplayer.infobox.js\"",
"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/basicplayer.commentbox.js\"",
"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/basicplayer.control.js\"",
"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/player.editable.js\"",
"></script>",
"<script type=\"text/javascript\" src=\"../../assets/wgo/scoremode.js\"></script>",
"<script",
" type=\"text/javascript\"",
" src=\"../../assets/wgo/player.permalink.js\"",
"></script>",
"<link",
" rel=\"stylesheet\"",
" type=\"text/css\"",
" href=\"../../assets/wgo/wgo.player.css\"",
"/>",
],
"description": "WGo.js SGF Import"
},
"LaTeX Import": {
"prefix": "latex_import",
"body": [
"<script",
" src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"",
" defer",
"></script>",
"<script",
" id=\"MathJax-script\"",
" async",
" defer",
" src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"",
"></script>"
],
"description": "LaTeX HTML Import from MathJax."
},
"HighlightJS Import": {
"prefix": "highlightjs_import",
"body": [
"<link",
" rel=\"stylesheet\"",
" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/atom-one-dark.min.css\"",
"/>",
"<script src=\"//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.5.0/build/highlight.min.js\"></script>",
"<script defer>",
" hljs.initHighlightingOnLoad();",
"</script>",
],
"description": "HighlightJS import."
},
"Fanaro Post Boilerplate": {
"prefix": "fanaro_post",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
" <head>",
" <title>${1:title}</title>",
"",
" <meta charset=\"UTF-8\" />",
" <meta name=\"viewport\" content=\"width=device-width\" />",
"",
" <meta name=\"author\" content=\"Philippe Fanaro\" />",
" <meta name=\"description\" content=\"${1:title}\" />",
"",
" <meta property=\"og:image\" content=\"${2:thumbnail.png}\" />",
" <meta property=\"og:description\" content=\"${1:title}\" />",
" <meta property=\"og:title\" content=\"${1:title}\" />",
" <meta property=\"og:site_name\" content=\"fanaro.io\" />",
" <meta property=\"og:type\" content=\"blog\" />",
"",
" <script src=\"../../index.js\"></script>",
"",
" <link rel=\"stylesheet\" href=\"../../index.css\" />",
" <link rel=\"icon\" type=\"image/svg+xml\" href=\"../../assets/favicon.svg\" />",
" </head>",
" <body>",
" <article>",
" <img src=\"${3:thumbnail.png}\" alt=\"${4:Thumbnail}\" />",
"",
" <h1>${1:title}</h1>",
" </article>",
" </body>",
"</html>",
""
],
"description": "The initial boilerplate for a post on fanaro.io"
}
}