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:
Each existing unread and subsequent new emails after the script is started are | |
passed as Mail objects to "process_email" function.Function header is provided | |
but processing implementation is left to the user. Error logs are currently sent | |
to a rotating log file (in the same directory as the script) and to STDOUT. | |
Instead of polling or checking the server for new emails every now and then, | |
IMAP IDLE check is utilized. Ensure that the IMAP server supports IDLE command | |
and allows at least 5 minutes of idling*** and uses the default ports for this | |
script to work. Tested to work with Gmail and default installations of MS | |
Exchange Server. |
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo "Usage: $0 1.8.0" | |
echo "to download and install MakeMKV 1.8.0" | |
exit 1 | |
fi | |
# Collect sudo credentials | |
sudo -v |
program a | |
use types, only: dp | |
use compute, only: init, register_func, run, eq, destroy, get_context | |
use iso_c_binding, only: c_ptr, c_loc, c_f_pointer | |
type my_data | |
! Material coefficients: | |
real(dp) :: a11, a12, a21, a22 | |
! There can be a lot of variables and big arrays here, this needs | |
! to be passed around by reference. |