Skip to content

Instantly share code, notes, and snippets.

aishikaty

Block or report user

Report or block aishikaty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View safe-html-template-literal.js
/** @version 0.1 */
const html = (strings, ...values) => (
Array.from(strings).map((string, index) => (
string + (
Array.isArray(values[index])
? values[index].join("")
: (new Option(values[index])).innerHTML
)
)).join('')
)
@aishikaty
aishikaty / router.js
Last active Mar 9, 2017
Router in a tweet
View router.js
function(b,d,a,c){(onhashchange=function(){for(a in b)if(c=RegExp("^#?"+a+"$").exec(location.hash))return d(b[a].apply(0,c.slice(1)))})()}
@aishikaty
aishikaty / LICENSE.txt
Last active Mar 11, 2017 — forked from 140bytes/LICENSE.txt
Module loader in CommonJS style
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
View tiny-view-libraries.md

☀️ UI Libraries

  • redom (1.6k) - Tiny turboboosted JavaScript library for creating user interfaces
  • frzr (1.6k) - Turboboosted 2 KB view library for browser & node.js
  • killroy (1.9k) - A tiny ui library inspired by React
  • real-dom (0.7k) - A ~1K non-virtual DOM non-framework framework for simple apps
  • domchanger (1.8k) - Dombuilder that applies diffs only to the real dom
  • vomit (3.2k) - A high order function using virtual dom to build user interfaces
  • bel (3.5k) - A simple library for composable DOM elements using tagged template strings
  • yo-yo (5.4k) - A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals (build on bel)
  • [choo](https://github.com/yos
You can’t perform that action at this time.