A 4-line shell script to convert your movies into gifs. Defaults to 10fps, 700px wide.
WIDTH=420 FPS=12 togif input.movYou'll need to have ffmpeg installed -- on mac, you can do this with brew:
brew install ffmpeg| # 2023-11-27 MIT LICENSE | |
| Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com. | |
| It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town. | |
| Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same! | |
| Send me your ChatGPT text adventure game on X, I'd love to try it! |
| const fs = require('fs') | |
| const path = require('path') | |
| // Params | |
| const pathToPreviousReport = process.argv[2] | |
| // Functions | |
| /** | |
| * Reads the coverage-summary.{XXX}.json file and returns the parsed JSON object | |
| * @param {*} pathToReport | |
| * @returns |
| const unified = require('unified') | |
| const parseMarkdown = require('remark-parse') | |
| const parseHtml = require('rehype-parse') | |
| const remark2rehype = require('remark-rehype') | |
| const rehype2remark = require('rehype-remark') | |
| const rehypeStringify = require('rehype-stringify') | |
| const visit = require('unist-util-visit') | |
| async function go() { | |
| const inputString = ` |
| :root { | |
| --violation-color: red; /* used for clear issues */ | |
| --warning-color: orange; /* used for potential issues we should look into */ | |
| } | |
| /* IMAGES */ | |
| /* | |
| * Lazy-Loaded Images Check | |
| * ==== |
| // | |
| // See: https://kentcdodds.com/blog/profile-a-react-app-for-performance#build-and-measure-the-production-app | |
| // See: https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config | |
| const TerserPlugin = require('next/dist/compiled/terser-webpack-plugin'); | |
| module.exports = { | |
| webpack: (config, options) => { | |
| // | |
| // Use profiler-enabled React builds |
A 4-line shell script to convert your movies into gifs. Defaults to 10fps, 700px wide.
WIDTH=420 FPS=12 togif input.movYou'll need to have ffmpeg installed -- on mac, you can do this with brew:
brew install ffmpegExample of the creating markdown table from the gl-code-quality-report.json Gitlab's code quality report with codeclimate SPEC.
jqgl-code-quality-report.json to markdown:
jq -r '. | sort_by((.location.path | explode | map(-.)), .location.lines.begin) | .[] | @text "| [\(.location.path):\(.location.lines.begin)](../blob/BRANCH-NAME/\(.location.path)#L\(.location.lines.begin)) | \(.description)"' gl-code-quality-report.json| Path | Description |
| Moved to https://github.com/ebidel/puppeteer-examples |
If you use Storybook with Next.js and have components using next/link you'll have to mock next/router the same you would for testing with Jest or others. Simply create a file with the mock router as shown below and import it in your Storybook config.
This is based on some information from an issue on Next.js:
This is a proposal for #ReactiveConf 2017 open call for Lightning talks.
Do you think that using git command line tool is the most efficient way of interacting with your repository?
In this lightning talk, I will introduce tig - the ncurses front-end for git, which will make your interaction with git much more efficient.
tig combines the advantages of the command line and GUI tools like qgit. With a couple of keystrokes, you are