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
from random import randint | |
# Simulate 2 dice being rolled | |
def dieRoll(): | |
return randint(1, 6) + randint(1, 6) | |
# Store results in a dictionary | |
results = {n: 0 for n in range(2, 13)} |
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
# ------- | |
# Aliases | |
# ------- | |
# Brew | |
alias brewup='brew update; brew upgrade; brew cask upgrade; brew cleanup; brew doctor' | |
#NPM Global list | |
alias npmlist='npm list -g --depth 0' | |
#Create React App | |
alias cra='npx create-react-app' | |
alias cowsay='npx cowsay' |
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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <sorin.ionescu@gmail.com> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |