Skip to content

Instantly share code, notes, and snippets.

🔍
Thinking about schools

Roy Mosby egomadking

🔍
Thinking about schools
View GitHub Profile
@egomadking
egomadking / .zshrc
Last active Dec 18, 2017
Working zshrc
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/roymosby/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
@egomadking
egomadking / T-Shirt sizing Udacity exercise improved.js
Created Jul 17, 2017
T-Shirt sizing Udacity exercise improved created by egomadking - https://repl.it/J44G/2
View T-Shirt sizing Udacity exercise improved.js
function shirtSize (shirtWidth, shirtLength, shirtSleeve){
if((shirtWidth <= 18) && (shirtLength <= 28) && (shirtSleeve <= 8.13)) {
console.log("S");
} else if((shirtWidth <= 20 && shirtWidth > 18) && (shirtLength <= 29 && shirtLength > 28) && (shirtSleeve <= 8.38 && shirtSleeve > 8.13)) {
console.log("M");
} else if((shirtWidth <= 22 && shirtWidth > 20) && (shirtLength <= 30 && shirtLength > 29) && (shirtSleeve <= 8.63 && shirtSleeve > 8.38)) {
console.log("L");
} else if((shirtWidth <= 24 && shirtWidth > 22) && (shirtLength <= 31 && shirtLength > 30) && (shirtSleeve <= 8.88 && shirtSleeve > 8.63)) {
console.log("XL");
} else if((shirtWidth <= 26 && shirtWidth > 24) && (shirtLength <= 33 && shirtLength > 31) && (shirtSleeve <= 9.63 && shirtSleeve > 8.88)) {
You can’t perform that action at this time.