Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains 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
#!/bin/bash | |
# Minimal script for timelapse capturing your screen in MacOSX. | |
# You must run the script, from an empty directory where the images will be stored. | |
# Usage: ./timelapse | |
# or | |
# Usage: ./timelapse <seconds> |
This file contains 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
#!/bin/bash | |
# | |
# script to create movie from images. Design to go with the timelapse script: https://gist.github.com/gre/11219793 | |
# | |
# Usage: ./generatevideo.sh dirWhereImagesAre/ | |
# Usage: ./generatevideo.sh # default is './timelapse' directory | |
# | |
# will generates movie.mp4 | |
dir=${1-"timelapse"} |
This file contains 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
// Location of the application: volume & directory, or 0 if unknown. | |
static short gAppVolRefNum; | |
static long gAppParID; | |
// Get an FSSpec pointing to a file with the given name. | |
static OSErr GetDataFile(FSSpec *spec, const char *filename) { | |
ProcessSerialNumber psn = {0, kCurrentProcess}; | |
ProcessInfoRec info = {0}; | |
FSSpec app_spec; | |
Str255 pname; |