Skip to content

Instantly share code, notes, and snippets.

View mauroreisvieira's full-sized avatar

Mauro Reis Vieira mauroreisvieira

View GitHub Profile
@mauroreisvieira
mauroreisvieira / Adaptive.sublime-theme
Created November 30, 2018 11:14 — forked from OdatNurd/Adaptive.sublime-theme
Patched Adaptive.sublime-theme for modifying the color of files in the sidebar based on their git status
[
// VCS badges
{
"class": "vcs_status_badge",
"parents": [{"class": "file_system_entry", "attributes": ["untracked"]}],
"layer0.texture": "Theme - Default/common/status_untracked.png",
"layer0.tint": "color(var(--yellowish) blend(rgb(255, 255, 255) 60%))",
"layer0.opacity": 1.0,
"content_margin": 6
},
@mauroreisvieira
mauroreisvieira / 1. v-dom.js
Created April 14, 2020 09:57 — forked from LucaColonnello/1. v-dom.js
Virtual DOM lite implementation
/** @jsx h */
// refs
// https://medium.com/@deathmood/how-to-write-your-own-virtual-dom-ee74acc13060
// https://medium.com/@deathmood/write-your-virtual-dom-2-props-events-a957608f5c76
// test: https://jsfiddle.net/Luca_Colonnello/Lzjy5a67/1/
// comparison:
// current - https://jsfiddle.net/Luca_Colonnello/5xebu97u/3/
// vidom - https://jsfiddle.net/Luca_Colonnello/dp9cwn37/2/
@mauroreisvieira
mauroreisvieira / vdom-finished.html
Created April 20, 2020 15:41 — forked from themarcba/vdom-finished.html
Vue.js-like Virtual DOM
<div id="app"></div>
<script>
// Create virtual node
function h(tag, props, children) {
// Return the virtual node
return {
tag,
props,
children,
}