This file contains hidden or 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
| ################################################################################ | |
| # creates a fwd-reverse loop of any gif | |
| ################################################################################ | |
| function gifloop { | |
| local -r original="${1:-UNSET}"; | |
| local -r original_254="/tmp/${original/.gif/_254.gif}"; | |
| local -r loop_unopt="/tmp/${original/.gif/_loop_unopt.gif}"; | |
| local -r output="${original/.gif/_loop.gif}"; | |
| if [[ "${orignal}" == "UNSET" ]]; then |
This file contains hidden or 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
| // Created by Derrick Cohodas (dav-) | |
| // Based on the Python example by StackExchange user wwnick from http://gis.stackexchange.com/a/415/41129 | |
| // Requires the Mathjs library - http://mathjs.org/ | |
| var math = require('mathjs') | |
| /** | |
| * Represents a coordinate with a distance | |
| * @param {Number} lat Latitude |
This file contains hidden or 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
| #!/usr/bin/env zsh | |
| ################################################################################################## | |
| # I actually have this aliased but since I want anyone to be able to use this | |
| # with a minimum of confusion or abject fuckery this is expressed as a one size fits all function | |
| ################################################################################################## | |
| function makelist { | |
| # on MacOS with gnu make/sed/grep installed via Homebrew (brew install make sed grep) | |
| if [[ $(uname -s) -eq "Darwin" ]] && { command -v ggrep && command -v gmake && command -v gsed } > /dev/null; |
This file contains hidden or 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 | |
| # Global constants | |
| readonly DEFAULT_SYSTEM_VOLUME="Macintosh" | |
| readonly DEFAULT_DATA_VOLUME="Macintosh - Data" | |
| # Text formating | |
| RED='\033[1;31m' | |
| GREEN='\033[1;32m' | |
| BLUE='\033[1;34m' |
OlderNewer