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:
class FullPaths(argparse.Action): | |
"""Expand user- and relative-paths""" | |
def __call__(self, parser, namespace, values, option_string=None): | |
setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values))) | |
def is_dir(dirname): | |
"""Checks if a path is an actual directory""" | |
if not os.path.isdir(dirname): | |
msg = "{0} is not a directory".format(dirname) | |
raise argparse.ArgumentTypeError(msg) |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
module Filter where | |
import Text.Pandoc.JSON | |
import Text.Pandoc.Definition | |
main :: IO () | |
main = toJSONFilter scrub | |
scrub :: Block -> Block | |
scrub h@(Header level (uid, cs, kvs) title) |
{ | |
"env": { | |
"browser": true, | |
"meteor": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, |
var app = {}; | |
// go through the application and find every single instance of a div | |
// with the class of 'sandbox' | |
app.bootstrap = function() { | |
var sandboxes = document.getElementsByClassName('sandbox'); | |
// for each sandbox, run the createSandbox function | |
[].forEach.call(sandboxes, app.createSandbox); | |
}; |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Remove output from existing Jupyter Notebooks. | |
Modified from remove_output by Minrk, damianavila, gabraganca. | |
References: | |
[0]: https://github.com/jupyter/nbformat | |
[1]: http://nbformat.readthedocs.org/en/latest/index.html |
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: