Skip to content

Instantly share code, notes, and snippets.

View xgqfrms's full-sized avatar
πŸ’­
πŸŽ‰ πŸ‘» πŸ’» πŸ•΅οΈβ€β™‚οΈ

xgqfrms xgqfrms

πŸ’­
πŸŽ‰ πŸ‘» πŸ’» πŸ•΅οΈβ€β™‚οΈ
View GitHub Profile
@xgqfrms
xgqfrms / element.js
Created July 6, 2022 08:47 — forked from dfkaye/element.js
Create a DOM element from template string using DOMParser
// 1 April 2020
// variant on jsx in vanilla.js
// see https://gist.github.com/dfkaye/f3229e5ace79b6873022987f160c7b61
// takes a template string and mimeType
// returns dom element from the template string
// TODO (maybe) - add UI map capability - i.e. UI = { name: <node with var=name> }
function element(template, mimeType) {
return (new DOMParser)
@xgqfrms
xgqfrms / linux-shell-comments-EOF.md
Last active April 9, 2024 06:39 — forked from mathiasbynens/appify
appify β€” create the simplest possible Mac app from a shell script

appify

#!/bin/bash

if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.