This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/bin/bash | |
# The moo scripting utility. | |
# By: Kevin Chavez (@aykev) | |
# moo myScript creates or edits a script. | |
## TODO: moo mv a b | |
SCRIPTS_DIR=~/.scripts/ |
window.listen = function(cb) { | |
// handle requests | |
const recieveREQ = function(message) { | |
if (message.data.type !== "REQ") { | |
return; | |
} | |
if (!(message.ports && message.ports[0])) { | |
cb(new Error("ERROR 2315: connection request was malformed. No port.")); |
import Foundation | |
// I took this from: https://gist.github.com/peatiscoding/4f8699d8acd635746037b844f0730336 | |
/** | |
setTimeout() | |
Shorthand method for create a delayed block to be execute on started Thread. | |
This method returns ``Timer`` instance, so that user may execute the block |
<html> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.4.1/umd/react.production.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.4.1/umd/react-dom.production.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script> | |
<script type="text/babel"> | |
class App extends React.Component { | |
render () { | |
return <p>Hello, Universe</p> | |
} |
'use strict'; | |
var args = function (fun) { | |
var str = fun.toString().split("\n")[0]; | |
return str.substring(str.indexOf("(")+1, str.indexOf(")")).split(",").map(function (x) { return x.trim(); }); | |
}; | |
var objectify = function (fun) { | |
if (typeof fun !== 'function') throw new Error(fun + " is not a function."); | |
// could extend so it also accepts an array or arguments |
"use strict"; | |
/* global require, console, module */ | |
var arr = function (x) { | |
return Array.prototype.slice.call(x); | |
}; | |
var args = function (str) { | |
return str.substring(str.indexOf("(")+1, str.indexOf(")")).split(","); | |
}; |
I hereby claim:
To claim this, I am signing this object:
int SWID = 1440; | |
int SHEI = 720; | |
void setup () { | |
size(SWID, SHEI); | |
background(255,255,255); | |
} | |
void drawCircle (int cx, int cy, int rd, int res) { | |
pushMatrix(); |
if cereal and wants_cereal | |
cereal | |
if ceral and !wants_cereal | |
ask_on_csp() | |
cereal | |
if !cereal | |
cereal if buy_cereal() && Math.random() > .2 | |
eat_out() |