// jQuery
$(document).ready(function() {
// code
})
This gist shows how to create a GIF screencast using only free OS X tools: QuickTime and ffmpeg.
Forked from https://gist.github.com/dergachev/4627207. Updated to use a palette to improve quality and skip gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
// Installation: | |
// yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator | |
import jsx from "@babel/plugin-syntax-jsx" | |
import generate from "@babel/generator" | |
const COLOR_MAP = { | |
"white": "white", | |
"near-white": "gray-100", | |
"light-gray": "gray-200", |
The helper function canvas-to-svg.js
wraps a given render function (or renderer object) so that you can use Canvas2D context methods as usual, but upon single frame export (with Cmd/Ctrl + S) it will produce both a PNG and SVG file.
This uses canvas2svg which is not a perfect solution, as the Canvas2D API was never designed to be translated to SVG. Its best to stick with simple shape and path operations.
Full instructions: first install the canvas-sketch CLI if you haven't already:
npm install canvas-sketch-cli -g
You can find this feature in Settings > Download Twitter Archive. It might take 24 hours to receive.
Unzip the file and open the data
folder in your terminal:
cd ~/Downloads/twitter-archive-zip-you-downloaded/data
(I have seen reports that this function may no longer be working, so this guide is mostly useful to those who were lucky enough to already have downloaded their archive.)