Skip to content

Instantly share code, notes, and snippets.

View Razatastic's full-sized avatar

Ahmad Raza Razatastic

View GitHub Profile
@Razatastic
Razatastic / diceRoll.py
Last active May 4, 2020 07:13
Simulate dice rolls and see probability between 2 to 12.
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)}
@Razatastic
Razatastic / .zshrc
Created February 14, 2019 20:36
Alias List
# -------
# 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'
@Razatastic
Razatastic / .zshrc
Created February 14, 2019 20:35
My Setup
#
# 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"