This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
"coc | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
"nerdtree | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'scrooloose/nerdtree' | |
Plug 'ryanoasis/vim-devicons' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0"> | |
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll"> | |
<vmap:AdSource id="preroll-ad-1" allowMultipleAds="false" followRedirects="true"> | |
<vmap:AdTagURI templateType="vast3"><![CDATA[url here]]></vmap:AdTagURI> | |
</vmap:AdSource> | |
</vmap:AdBreak> | |
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll"> | |
<vmap:AdSource id="preroll-post-bumper" allowMultipleAds="false" followRedirects="true"> | |
<vmap:AdTagURI templateType="vast3"><![CDATA[url here]]></vmap:AdTagURI> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nodejs provided this example already on https://nodejs.org/api/http.html#http_event_upgrade | |
// I changed some stuffs so I can understand it better. | |
const http = require('http'); | |
// Create an HTTP server | |
const server = http.createServer((req, res) => { | |
res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
res.end('okay'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let layer = figma.currentPage.selection[0]; | |
let vectorPaths = layer.vectorPaths.map(item => { | |
return {windingRule: 'NONZERO', data: item.data} | |
}) | |
layer.vectorPaths = vectorPaths | |
layer.exportAsync({ | |
format: 'SVG' | |
}).then(uint8Array => { |