Skip to content

Instantly share code, notes, and snippets.

import {
computed,
Line,
Node,
NodeProps,
Rect,
RectProps,
signal,
useScene2D,
vector2Signal,
@spidunno
spidunno / pride.js
Created July 7, 2024 14:50
ANSI Progress Pride Flag
const FLAG = '\x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[41m \n\x1b[105m \x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[33;41m░░░░░░░░░░░░░░\n\x1b[47m \x1b[105m \x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[43m \n\x1b[47m \x1b[105m \x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[42m \n\x1b[105m \x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[44m \n\x1b[104m \x1b[41;30m▒▒\x1b[40m \x1b[45m ';
.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch
@spidunno
spidunno / esnextbin.md
Last active August 19, 2021 04:14
esnextbin sketch
window.onload = () => {
if(typeof pyodide !== 'undefined') {
languagePluginLoader.then(() => {
document.querySelectorAll("script[src]").forEach(e => {if(e.type == 'python' || e.type == 'text/python') {
var xhr = new XMLHttpRequest();
xhr.open("GET",e.src)
xhr.onreadystatechange = function () {
if(xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200){
pyodide.runPython(xhr.responseText);
}