rm -rf /tmp/gif
mplayer -ao null <video file name> -vo jpeg:outdir=/tmp/gif
convert /tmp/gif/* /tmp/gif/output-temp.gif
convert /tmp/gif/output.gif -fuzz 5% -layers Optimize /tmp/gif/output-temp.gif
This file contains hidden or 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
// A person that can login to the SaaS | |
model User { | |
id String @id @unique @default(cuid()) | |
name String? | |
email String? | |
Member Member[] | |
} | |
// A workspace of several persons, focused on one podcast | |
model Podcast { |
This file contains hidden or 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
import Head from "next/head"; | |
import GenerateBanners from "@generatebanners/node-sdk"; | |
const client = new GenerateBanners({ | |
apiKey: process.env.GB_API_KEY, | |
apiSecret: process.env.GB_API_SECRET, | |
}); | |
export default function Post({ post, image }) { | |
return ( |
This file contains hidden or 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
let colors; | |
const colorOptions = ['green', 'darkblue', '#954535', 'black']; | |
function setup() { | |
createCanvas(400, 400); | |
colors = Array(10).fill(0).map(x => colorOptions[floor(random(0, colorOptions.length))]); | |
} | |
function eye(x, y, targetX, targetY, color) { | |
noFill(); | |
stroke(0); |
This file contains hidden or 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
const points = 16; | |
const maxNoise = 0.5; | |
const transparency = 0.05; | |
const lines = 1024; | |
const lineStepNoise = 0.001; | |
const minRadius = 10; | |
const maxRadius = 700; |
This file contains hidden or 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
function setup() { | |
createCanvas(500, 500); | |
background('#ffffff'); | |
noLoop(); | |
} | |
function randomLine(x, y, w, h) { | |
if(Math.random() < 0.5) { | |
line(x, y, x+w, y+h); | |
} else { |
This file contains hidden or 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
docker stop $(docker ps -a -q) |
This file contains hidden or 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
docker run -p 3000:3000 -v $(pwd):/src -w /src node:10-alpine node main.js |
This file contains hidden or 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 elems = [].slice.call(document.querySelectorAll('.js-issue.ghx-selected')); | |
var total = 0; | |
var count = 0; | |
elems.forEach(function(elem) { | |
var points = parseFloat(elem.querySelector('*[title="Story Points"]').innerText); | |
total += points; | |
count++; | |
}) | |
alert(total + ' points\n' + count + ' tickets'); |
This file contains hidden or 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
<!DOCTYPE> | |
<html> | |
<head> | |
<meta name="charset" content="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/normalize/6.0.0/normalize.min.css" rel="stylesheet" type="text/css"> | |
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,700" rel="stylesheet" type="text/css"> | |
<style> | |
html { |
NewerOlder