This file contains hidden or 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
/** | |
We need to deliver a package of Skittles bags. You will be given an inventory of small bags (1 kilo each) and big bags | |
(5 kilos each) along with the goal amount of kilos we need to ship the customer. Return the amount of small bags the package | |
will contain assuming we always use big bags first. Return -1 if it cannot be done. | |
Input | |
small (type: int) - The number of small bags we have to work with | |
big (type: int) - The number of big bags we have to work with | |
goal (type: int) - The goal weight of the package that we need to ship out |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
cf push customer_portal | |
SHA=`git log --pretty=format:'%h' -n 1` | |
NOW=`date +"%Y-%m-%d-%H-%M"` | |
TAGNAME=`echo $NOW-Review-$SHA` | |
git tag -a $TAGNAME -m "$NOW" |
This file contains hidden or 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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1 | |
owGbwMvMwMRow7h5BeuGgmjG0wdeJTGEBjCYVSsl5adUKllVKyXnZKbmlYBYeYm5 | |
qUpWStmplUmJxal6mfkKefkpqXpZxQpQNTpKZalFxZn5eUBVBnrmehZKtTog5SDN | |
aZl56alFBUWZILOUTIzSLCxNzQwMEg0NEk1S0pIsTNMMDc1SLVNTk0zMjEyTLEEs | |
wxSgkRn5xSUotiqBzYzPTAGKWrq6OoHUO1mCWIYuQLlSsESSiYmxSVKyuVliqnmS | |
qWWycaKBhaGliaWJsZmpUYqhJUhhcWoR1EvpRanpVWbmIOcCBcsyk1OR/JueWZJR | |
moRTQ0llAUikPDUpHqo3PikzLwXoXeTwMASqTC7JBGk2NDE2NDYwM7I00VFKrSjI | |
LEqNzwSpMDU3szAAAh2lgqLUMiWrvNKcHJB7CvPygbJAixLTgfYUZ6bnJZaUFqUq |
This file contains hidden or 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
__author__ = 'gregz' | |
# Crazy Name generator | |
# Write a function that takes two words and a number as parameters and | |
# outputs them all put together (called concatenated) with the following rules: | |
# 1. Capitalize the first letter of each word | |
# 2. Use a dictionary to translate: | |
# a -> @ | |
# i -> ! | |
# o -> 0 |
This file contains hidden or 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
__author__ = 'gregz' | |
# 1. Create a dictionary of three or more of your Minecraft friends. | |
# The key should be their first name, the value should be their Minecraft login. | |
# 2. Input a friends name. | |
# * if the name is in the dictionary, print their Minecraft login. | |
# * if the name is not in the dictionary | |
# * print a message saying that name is not in the dictionary | |
# * input their Minecraft login |