- Install Markdown Preview
- https://github.com/revolunet/sublimetext-markdown-preview
- Set key settings “alt-m” to open preview in a browser
- Preference-Key Bindings
[ { "keys": [ "alt+m"
],
[
{
"keys": [
"alt+m"
],
<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="https://fb.me/react-15.0.0.js"></script> | |
<script src="https://fb.me/react-dom-15.0.0.js"></script> | |
<script src="https://unpkg.com/babel-standalone/babel.min.js"></script> | |
<script type="text/babel"> | |
const style = { | |
backgroundColor: 'grey', | |
fontSize: '24px' |
<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="//unpkg.com/vue/dist/vue.min.js"></script> | |
<div id="hello-world" v-on:click="msg++"> | |
Hello {{ msg }} | |
</div> | |
<script> | |
new Vue({ | |
el: "#hello-world", |
class PlunkerSubmit { | |
constructor() { | |
this.formFields = []; | |
this.indexHeads = []; | |
this.indexBody = ''; | |
} | |
setDescription(description) { | |
this.formFields.push({name: 'description', value: description}); |
function toUTF16(codePoint) { | |
var TEN_BITS = parseInt('1111111111', 2); | |
function u(codeUnit) { | |
return '\\u'+codeUnit.toString(16).toUpperCase(); | |
} | |
if (codePoint <= 0xFFFF) { | |
return u(codePoint); | |
} | |
codePoint -= 0x10000; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
class AppDrawer extends HTMLElement { | |
//... | |
} | |
window.customElements.define('app-drawer', AppDrawer); | |
</script> | |
</head> |
:root { | |
font-family: Roboto, sans-serif; | |
--theme-primary: #212121; | |
--theme-text-primary: #fff; | |
--theme-shadow-4dp: | |
0px 2px 4px -1px rgba(0, 0, 0, 0.2), | |
0px 4px 5px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 10px 0px rgba(0, 0, 0, 0.12); | |
} | |
.float-left { |
class GoogleMap extends HTMLElement{ | |
connectedCallback() { | |
this.map = new google.maps.Map(this, {center:{lat: -25.363, lng: 131.044}, zoom:4 }); | |
this.initMarkers(); | |
} | |
initMarkers() { | |
setTimeout(_ => { | |
Array.from(this.querySelectorAll('a-marker')).forEach(el => { | |
el.init(this.map); | |
}) |