Skip to content

Instantly share code, notes, and snippets.

View tomatrow's full-sized avatar

AJ Caldwell tomatrow

View GitHub Profile
@tomatrow
tomatrow / dict.fish
Last active October 28, 2017 22:32 — forked from RomanHargrave/assoc.fish
# ASCII Unit separator, purpose is to separate subrecords, etc...
set __dict_US \31
# Groks name[key] and sets varname and key variables
function dict._parsename -S -a raw
set -l data (string match -r '(.+)\[(.+)\]' $raw)
if [ (count $data) -lt 3 ]
echo "Invalid dictionary syntax '$raw'"
return 1
else
@tomatrow
tomatrow / codestream.fish
Last active March 29, 2020 17:45
Twitch streaming customized for coding (mostly reading documentation)."
# AJ Caldwell - tomatrow@gmail.com
function codestream -d "Twitch streaming customized for coding (mostly reading documentation)."
# Input configuration.
set IN_VIDEO_ID "1" # The main screen we code from.
set IN_AUDIO_ID "0" # The Twitch-Input we set previously.
set SOURCE "$IN_VIDEO_ID:$IN_AUDIO_ID" # avfoundation assigns numbers to video/audio devices.
set INRES "1440x900" # input resolution for a macbook air
set IN_FPS "10" # Our rate of video capture.
@tomatrow
tomatrow / T
Last active August 18, 2017 21:39
A
//
// BSBTopping.m
// BaltimoreSnowball
//
// Created by AJ Caldwell on 1/11/14.
// Copyright (c) 2014 AJ Caldwell. All rights reserved.
//
#import "BSBTopping.h"
#import "BSBConstants.h"