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.
@xgqfrms
xgqfrms / it-ebooks.md
Created January 29, 2023 15:09 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want