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:
| # See https://www.anaconda.com/understanding-and-improving-condas-performance/ for more info. | |
| # help debug channel issues | |
| show_channel_urls: true | |
| # pip will always be installed with python | |
| add_pip_as_python_dependency: true | |
| # strict priority and conda-forge at the top will ensure | |
| # that all of your packages will be from conda-forge unless they only exist on defaults |
| <object> | |
| <embed src="https://travel.state.gov/content/dam/passports/content-page-resources/FIG_cropper.swf" width="100%" height="100%"> | |
| </object> |
| import pandas as pd | |
| from matplotlib import pyplot as plt | |
| import numpy as np | |
| %matplotlib inline | |
| url = 'https://storage.googleapis.com/pangeo-cmip6/pangeo-cmip6-zarr-consolidated-stores.csv' | |
| df = pd.read_csv(url) | |
| run_count = df[df.activity_id == 'CMIP'].groupby(['experiment_id', 'source_id']).zstore.count() | |
| rcu = run_count.unstack(level=-1) |
| #!/bin/bash | |
| # Script for installing Fish Shell on systems without root access. | |
| # Fish Shell will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| FISH_SHELL_VERSION=2.1.1 |
| # -*- coding: utf-8 -*- | |
| """ Deletes all tweets below a certain retweet threshold. | |
| """ | |
| import tweepy | |
| from datetime import datetime | |
| # Constants | |
| CONSUMER_KEY = '' |
| username = raw_input("Enter SSH username:") | |
| yubikey_string = getpass.getpass('Enter YubiKey OTP:') | |
| client = paramiko.client.SSHClient() | |
| # Any means of getting the PKey will do. This code assumes you've only got one key loaded in your active ssh-agent. | |
| # See also: | |
| # - http://docs.paramiko.org/en/1.17/api/keys.html#paramiko.pkey.PKey | |
| # - http://docs.paramiko.org/en/1.17/api/client.html#paramiko.client.SSHClient.connect | |
| my_pkey = paramiko.agent.Agent().get_keys()[0] |