Skip to content

Instantly share code, notes, and snippets.

View josh-kaplan's full-sized avatar

Josh Kaplan josh-kaplan

View GitHub Profile
@josh-kaplan
josh-kaplan / spacex_its_volume.m
Last active October 2, 2016 22:45
A script to calculate human-usable living space of SpaceX's ITS ship. After watching some of Elon Musk's presentation, I could quite wrap my head around 100 people on that ship. So here's the math and some perspective. Turns out 100 people may not be unreasonable.
% SpaceX ITS Volumetric Capacity
% spacex_its_volume.m
%
% Josh Kaplan
% contact@joshkaplan.org
%
% SpaceX claims that the spaceship that sits atop ITS can carry 100+ people
% per ship.
%
% The ship is slightly larger than the Saturn V, which carried 3 people.
@josh-kaplan
josh-kaplan / .vimrc
Last active June 14, 2021 16:16
.vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" My .vimrc file
"
" Disclaimer: I didn't write the original, I believe it came
" from Harvard's CS50 course, but I do not have a link to the
" original copy of this. I simply added to an already very
" thorough vimrc.
"
"
" Sections:
@josh-kaplan
josh-kaplan / jdk.zsh-theme
Last active August 29, 2015 14:25
A modification to the robbyrussell theme
local ret_status="%(?:%{$fg_bold[green]%}∴ :%{$fg_bold[red]%}∴ %s)"
PROMPT='${ret_status}%{$fg_bold[green]%}%p%{$fg_bold[grey]%}%n%{$fg_bold[white]%}@%{$fg_bold[grey]%}%m%{$fg_bold[green]%}%u %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git: (%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@josh-kaplan
josh-kaplan / .bashrc
Created July 22, 2015 23:31
Just a copy of my .bashrc file.
#!/bin/bash
# Aliases
alias ls="ls -G"
alias l="ls $*"
alias ll="ls -l"
alias lls="ls -l $*"
alias .="cd ~/Dev"
alias ..="cd .."
alias ...="cd ../../"