Skip to content

Instantly share code, notes, and snippets.

View forresto's full-sized avatar

Forrest O. forresto

View GitHub Profile
@forresto
forresto / clipboard.cuttle.svg.txt
Last active April 13, 2022 21:05
Cuttle.xyz clipboard string format
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="10mm" height="10mm" viewBox="0 0 28.34645669291339 28.34645669291339">
<g>
<g>
<g>
<path d="M0 0 L28.34645669291339 0 L28.34645669291339 28.34645669291339 L0 28.34645669291339 L0 0 Z " fill="none" stroke="#000000" stroke-width="0.2834645669291339" />
<g>
</g>
</g>
{
"info": {
"author": "forresto",
"title": "slitscan",
"description": "slitscan",
"parents": [
"https://gist.github.com/3707631",
"https://gist.github.com/cb7710281677eb24a87e5911b2065825"
],
"url": "slitscan"
@forresto
forresto / atkinson-cam.meemoo.json
Created December 6, 2021 08:20
meemoo app: atkinson-cam
{
"info": {
"author": "meemoo",
"title": "1989 mac dithering",
"description": "",
"parents": [
"https://gist.github.com/3721129",
"https://gist.github.com/3722026"
],
"url": "atkinson-cam"
{
"info": {
"title": "spin grid",
"author": "forresto",
"description": "grid spinnn tBoD 4eva",
"url": "spin-grid"
},
"nodes": [
{
"id": 6,
@forresto
forresto / tiptap-lite-youtube.ts
Last active May 5, 2025 11:02
tiptap-lite-youtube node type
// Registers the lite-youtube custom element
import "@justinribeiro/lite-youtube";
import { Node, mergeAttributes } from "@tiptap/core";
import { Plugin, PluginKey } from "prosemirror-state";
// Captures the YouTube ID as the first matching group.
// Vendored 2021-10-07 from https://github.com/micnews/youtube-url/blob/master/index.js
const youtubeRegExp =
/^(?:(?:https?:)?\/\/)?(?:www\.)?(?:m\.)?(?:youtu(?:be)?\.com\/(?:v\/|embed\/|watch(?:\/|\?v=))|youtu\.be\/)((?:\w|-){11})(?:\S+)?$/;
{
"info": {
"author": "meemoo",
"title": "1989-gameboy-looking png",
"description": "dot matrix with stereo sound baby",
"parents": [
"https://gist.github.com/3721129",
"https://gist.github.com/3722026"
],
"url": "dot-matrix"
@forresto
forresto / video-slitscan.meemoo.json
Created April 25, 2021 21:22
video-slitscan.meemoo.json
{
"info": {
"title": "technically the slit is horizontal",
"author": "forresto",
"description": "video file to still image",
"url": "vertical-slitscan"
},
"nodes": [
{
"id": 4,
@forresto
forresto / pickFile.ts
Last active February 3, 2021 18:52
pickFile: vanilla dom typescript function (promise / async friendly) to pick a file (why isn't this a standard dom function?)
/*
// How to use
export const triggerSVGImportFilePicker = async () => {
const files = await pickFile({ accept: ".svg" });
if (files && files.length) {
handleFiles(files);
}
};
*/
@forresto
forresto / hello-vue.js
Last active October 28, 2020 17:36
hello-vue.js
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue! AF is cool.'
}
})
@forresto
forresto / 2020-10-28-coworking-sess.json
Created October 28, 2020 11:39
2020-10-28-coworking-sess.json
{
"info": {
"title": "cam to gif",
"author": "forresto",
"description": "webcam to animated gif",
"url": "2020-10-28-coworking-sess"
},
"nodes": [
{
"id": 1,