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 / pset2-1.jl
Last active February 14, 2018 03:19
Calculations for FESS 1 Problem Set #2, Problem #1
#!/usr/bin/env julia
################################################################################
# pset2-1.jl
#
# Josh Kaplan
# _jk@jhu.edu
#
# Computations for Problem Set #2, Problem #1.
################################################################################
@josh-kaplan
josh-kaplan / pset2-2.jl
Created February 14, 2018 17:43
Computations for FESS 1 Problem Set #2, Problem #2
#!/usr/bin/env julia
################################################################################
# pset2-2.jl
#
# Josh Kaplan
# _jk@jhu.edu
#
# Computations for Problem Set #2, Problem #2.
################################################################################
@josh-kaplan
josh-kaplan / jk.zsh-theme
Created July 18, 2018 02:02
My ZSH theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%}"
local user="%{$FG[236]%}%n%{$fg[white]%}@%{$FG[236]%}%m%{$reset_color%}"
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
PROMPT='${ret_status}%{$fg_bold[grey]%}${user} ${pwd} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$FG[134]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[green]%}+%{$reset_color%}/%{$fg[red]%}-"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@josh-kaplan
josh-kaplan / calc.py
Created July 27, 2023 01:07
Calculating percent margin in scaled agile planning
import matplotlib.pyplot as plt
# Globals
L_MIN = 1
L_MAX = 4
N_MIN = 4
N_MAX = 6
WIDTH_SIZE = 8
HEIGHT_SIZE = 6
SAVE_FIGURES = True