This file contains 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 | |
# Aliases | |
alias ls="ls -G" | |
alias l="ls $*" | |
alias ll="ls -l" | |
alias lls="ls -l $*" | |
alias .="cd ~/Dev" | |
alias ..="cd .." | |
alias ...="cd ../../" |
This file contains 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
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]%})" |
This file contains 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
% 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. |
This file contains 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
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]%})" |
This file contains 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
""" | |
Sight Reduction | |
Calculate position on 2000 June 21 2100 UTC | |
Star Observed Altitude | |
------- ----------- -------- | |
Regulus 20h 39m 23s 37.4204 | |
Antares 20h 45m 47s 20.3226 | |
Kochab 21h 10m 34s 47.2050 |
This file contains 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
""" | |
Sight Reduction | |
Similar to the last sight reduction one, but modified to use geostationary satellites. | |
""" | |
from __future__ import division | |
import math | |
from math import sin, cos, tan, asin, acos, atan |
This file contains 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
%% Newtonian vs. Relativistic Energy Accuracy - Using Newton's Method | |
% Determines the maximum speed a particle can have such that its | |
% kinetic energy described as 0.5*m*v^2 with an error of no greater | |
% than <tolerance>. | |
close all; clear all; clc; | |
% Input - The tolerance of the accuracy of the Newtonian kinetic energy | |
% compared to the relativistic energy. | |
tolerance = .005; |
This file contains 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
%% Newtonian vs. Relativistic Energy Accuracy | |
% Determines the maximum speed a particle can have such that its | |
% kinetic energy described as 0.5*m*v^2 with an error of no greater | |
% than <tolerance>. | |
close all; clear all; clc; | |
% Input - The tolerance of the accuracy of the Newtonian kinetic energy | |
% compared to the relativistic energy. | |
tolerance = .005; |
This file contains 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
%% Newtonian vs. Relativistic Energy Accuracy | |
% Determines the maximum speed a particle can have such that its | |
% kinetic energy described as 0.5*m*v^2 with an error of no greater | |
% than <tolerance>. | |
close all; clear all; clc; | |
% Input - The tolerance of the accuracy of the Newtonian kinetic energy | |
% compared to the relativistic energy. | |
tolerance = .005; |
This file contains 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 julia | |
################################################################################ | |
# pset2-1.jl | |
# | |
# Josh Kaplan | |
# _jk@jhu.edu | |
# | |
# Computations for Problem Set #2, Problem #1. | |
################################################################################ |
OlderNewer