This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "spin grid", | |
"author": "forresto", | |
"description": "grid spinnn tBoD 4eva", | |
"url": "spin-grid" | |
}, | |
"nodes": [ | |
{ | |
"id": 6, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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+)?$/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "technically the slit is horizontal", | |
"author": "forresto", | |
"description": "video file to still image", | |
"url": "vertical-slitscan" | |
}, | |
"nodes": [ | |
{ | |
"id": 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// How to use | |
export const triggerSVGImportFilePicker = async () => { | |
const files = await pickFile({ accept: ".svg" }); | |
if (files && files.length) { | |
handleFiles(files); | |
} | |
}; | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = new Vue({ | |
el: '#app', | |
data: { | |
message: 'Hello Vue! AF is cool.' | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "cam to gif", | |
"author": "forresto", | |
"description": "webcam to animated gif", | |
"url": "2020-10-28-coworking-sess" | |
}, | |
"nodes": [ | |
{ | |
"id": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "vid split and loop: 1234", | |
"author": "forresto", | |
"description": "webcam to video to multiple players", | |
"url": "vid-split-and-loop" | |
}, | |
"nodes": [ | |
{ | |
"id": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imagined API | |
import AE from 'ae' | |
// Assumes playBackwardDuration is less than playForwardDuration | |
function (clip, playForwardDuration, playBackwardDuration) { | |
let time = 0; | |
const edits = [] | |
while (time < clip.clipDuration) { | |
let playHead = time; | |
edits.push(AE.edit(playHead, playHead + playForwardDuration, 1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |