Skip to content

Instantly share code, notes, and snippets.

don't call me at all

muan muan

don't call me at all
View GitHub Profile
muan /
Last active Apr 29, 2019
Web Components F2F Spring 2019

General philosophy

  • Features are built without JS first
  • Progressive enhancement Consider elements' relationship to the DOM
    • Minimum HTML generation
    • Leave styling to CSS classes
    • Create all necessary markup in the HTML document
    • Rely on native elements as much as possible (not reimplementing what native elements already know how to do)
  • Not using frameworks
We couldn’t find that file to show.
muan /
Last active Dec 21, 2019
Details on details cheatsheet.
muan / emoji.c
Last active Oct 4, 2016
No description.No description.No description.
muan / index.js
Created Aug 26, 2015
requirebin sketch
View index.js
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var cn = require('chinese-conv')
var pinyin = require('pinyin')
var textarea = document.createElement('textarea')
textarea.addEventListener('keyup', function () {
View canviz.js
(function(exports) {
var debug = exports.debug = function(str, escape) {
str = String(str);
if ('undefined' === typeof escape) {
escape = true;
if (escape) {
str = _.str.escapeHTML(str);
muan / index.js
Created Oct 12, 2014
requirebin sketch
View index.js
// require something and hit 'Run', e.g. require('cat-picture')
muan / gist:6067094
Last active Dec 20, 2015
Sublime shortcuts
View gist:6067094
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["alt+up"], "command": "swap_line_up"},
{ "keys": ["alt+down"], "command": "swap_line_down"},
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
You can’t perform that action at this time.