Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New and improved excuses credit http://www.careerbuilder.com/share/ab… #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions hangover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@
number_of_boss = '+xxx'

excuse = [
'Locked out',
'Pipes broke',
'Food poisoning',
'Not feeling well'
'I thought of quitting today, but then decided not to, so I came in late.',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to work for missing the day entirely

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..so I work from home. but only after lunch. with limited connection

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch, I'll incorporate this in the next PR.

'My hair caught on fire from my blow dryer.',
'I was detained by Homeland Security.',
'I had to chase my cows back into the field.',
'A black bear entered my carport and decided to take a nap on the hood of my car.',
'My lizard had to have emergency surgery in the morning and died during surgery. I had to mourn while deciding whether to have the lizard disposed of by the vet or bring the lizard corpse with me to work.',
'There was fresh powder on the hill. I had to go skiing.',
'There was a store grand opening and I wanted to get the opening day sales.',
'I had to finish watching “My Name is Earl.”',
'All of my clothes were stolen.',
'I was confused by the time change and unsure if it was “spring forward” or “fall back.”',
'A Vaseline truck overturned on the highway and cars were slipping left and right.'
].sample

# Send a text message
Expand Down
16 changes: 12 additions & 4 deletions hangover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ MY_NUMBER='+xxx'
NUMBER_OF_BOSS='+xxx'

EXCUSES=(
'Locked out'
'Pipes broke'
'Food poisoning'
'Not feeling well'
'I thought of quitting today, but then decided not to, so I came in late.'
'My hair caught on fire from my blow dryer.'
'I was detained by Homeland Security.'
'I had to chase my cows back into the field.'
'A black bear entered my carport and decided to take a nap on the hood of my car.'
'My lizard had to have emergency surgery in the morning and died during surgery. I had to mourn while deciding whether to have the lizard disposed of by the vet or bring the lizard corpse with me to work.'
'There was fresh powder on the hill. I had to go skiing.'
'There was a store grand opening and I wanted to get the opening day sales.'
'I had to finish watching “My Name is Earl.”'
'All of my clothes were stolen.'
'I was confused by the time change and unsure if it was “spring forward” or “fall back.”'
'A Vaseline truck overturned on the highway and cars were slipping left and right.'
)
rand=$[ $RANDOM % ${#EXCUSES[@]} ]

Expand Down