I hereby claim:
- I am rodneyperez on github.
- I am rodneyperez (https://keybase.io/rodneyperez) on keybase.
- I have a public key ASBM0c9kirhO6wUbuDNFhUVJsYrW3dGPQW5rukgw0aOnwgo
To claim this, I am signing this object:
#Pull python image | |
docker pull python | |
#Pull ruby image | |
docker pull ruby | |
# Runs a bash shell in this python image | |
# rm removes the container once the command finishs | |
# it allows an the shell to interact with stdin | |
# v volume says to mount current directory to the app folder |
#commands used for a docker build and run demo | |
echo "FROM ruby:2.7.4" >> Dockerfile | |
echo 'CMD ["ruby", "-e", "puts(\"hello container\")"]' >> Dockerfile | |
docker build . | |
#Gotta find id to run | |
docker run <id> | |
#Easier to tag and use tag | |
docker build . --tag my-ruby-app | |
docker run my-ruby-app |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-sensible' | |
Plug 'hashivim/vim-terraform' | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
Plug 'elzr/vim-json' |
I hereby claim:
To claim this, I am signing this object:
# don't initialize class with existing data | |
# don't use a hash to store your voters | |
# don't store store your list of voters in the voter class | |
# store them in the simulation class | |
# all putsing and user input should be done outside of classes | |
#this class initializes the person with a name and an affilation | |
#something both a politician and a voter share | |
class Person | |
attr_accessor :affiliation, :name |
class Voter | |
def initialize | |
@list_of_voters = {"Roger"=> "Tea Party" , "Auston"=>"Anarchist", "Bianca"=>"Liberal"} | |
end | |
def puts_out_information(information) | |
puts information | |
end | |
def create | |
puts_out_information("Name of Voter you would add?") | |
@name = gets.chomp |
##################################################################### | |
#Declares the initial variables that will be used later in the program | |
puts "Welcome to barista world. Would you like to go to start your shift? Yes or No?" | |
game_start_answer = gets.chomp.downcase | |
tip_total = 0 | |
number_of_people_in_line = rand(1...7) | |
##################################################################### | |
##################################################################### | |
#Conditional that decides if user is wearing something cute |
##################################################################### | |
#Declares the initial variables that will be used later in the program | |
puts "Welcome to barista world. Would you like to go to start your shift? Yes or No?" | |
game_start_answer = gets.chomp.downcase | |
tip_total = 0 | |
number_of_people_in_line = rand(1...7) | |
##################################################################### | |
##################################################################### | |
#Conditional that decides if user is wearing something cute |