Skip to content

Instantly share code, notes, and snippets.

View altwitt's full-sized avatar

Harrison Witt altwitt

  • Geospatial Developer
  • Memphis, TN
  • 21:26 (UTC -06:00)
View GitHub Profile
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x) {r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
###########################################
## FUNCTIONS 03.05.2019
###########################################
function mkcd {
if [ ! -n "$1" ]; then
echo "Enter a directory name"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
@altwitt
altwitt / .alias
Last active June 27, 2019 16:30
bash aliases
#!/usr/bin/env bash
###########################################
## ALIASES 05.12.2019
###########################################
# Easier navigation: .., ..., -
alias ..='cd ..'
alias ...='cd ../..'
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
cask_args appdir: "/Applications"
tap "homebrew/cask"
tap "caskroom/cask"
tap "dart-lang/dart"
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/services"
brew "ansiweather"
brew "archey"
brew "autoconf"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.13574660633484159</real>
<key>Green Component</key>
<real>0.13574660633484159</real>
#!/usr/bin/env bash
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
alias c='clear'
# Shortcuts
## COMMAND TO RUN AFTER DOWNLOADING OS INSTALLER
"/Users/altwitt/Sierra.app/Contents/Resources/startosinstall" --eraseinstall --newvolumename "Macintosh HD" --agreetolicense
That’s
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group FB363AAC-635D-4ABB-B8B7-627ADF465DFF
=========================================================
@altwitt
altwitt / animated-3d-globe-webgl-three-js.markdown
Created November 30, 2019 03:46
Animated 3D Globe (WebGL/three.js)