(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import { | |
defineConfig, | |
presetAttributify, | |
presetIcons, | |
presetTagify, | |
presetWind, | |
transformerDirectives, | |
transformerVariantGroup, | |
} from "unocss"; | |
//import fs from "node:fs/promises"; |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
package main | |
import ( | |
"fmt" | |
sf "gosfml2" | |
"time" | |
"path/filepath" | |
"os" | |
"flag" | |
"math/rand" |