I hereby claim:
- I am rodriguezcommaj on github.
- I am rodriguezcommaj (https://keybase.io/rodriguezcommaj) on keybase.
- I have a public key whose fingerprint is BBA2 28D4 6A9F 45C9 BADE 40B4 5A23 E37B 07AD 05EB
To claim this, I am signing this object:
| function calculateTotal(price, quantity) { | |
| let total = price * quantity; | |
| if (price <= 0 || quantity <= 0) { | |
| return "Invalid input"; | |
| } | |
| return total.toFixed(2); | |
| } |
| Hello friends! | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut leo faucibus, pharetra velit vel, porta tortor. In ac est odio. Sed dolor erat, bibendum vel cursus et, mollis vitae eros. Fusce volutpat, quam vel rutrum tristique, mi lectus tincidunt massa, at sodales arcu nibh in erat. Sed accumsan mi at ipsum feugiat laoreet. Fusce blandit nulla at imperdiet condimentum. Etiam eget aliquet leo. Mauris interdum ligula facilisis arcu hendrerit rutrum. | |
| - Bullet list item | |
| - Bullet list item | |
| - Bullet list item | |
| _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_ |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from sys import argv | |
| from os.path import exists | |
| script, from_file, to_file = argv | |
| print "Copying from %s to %s" % (from_file, to_file) | |
| # we could do these two on one line too, how? | |
| in_file = open(from_file) | |
| indata = in_file.read() |
| new = "n" | |
| target.write(line1 + new + line2 + new + line3 + new) |
| # import modules | |
| from sys import argv | |
| # unpack argv | |
| script, input_file = argv | |
| # define a function that reads the passed argument | |
| def print_all(f): | |
| print f.read() |
| def break_words(stuff): | |
| """This function will break up words for us.""" | |
| words = stuff.split(' ') | |
| return words | |
| def sort_words(words): | |
| """Sorts the words.""" | |
| return sorted(words) | |
| def print_first_word(words): |
| money = int(raw_input("How much money do you have? ")) | |
| price = int(raw_input("How much is a Diet Coke? ")) | |
| leftover_money = money - price | |
| print "So, you have %r dollars and a Diet Coke costs %r." % (money, price) | |
| print "If you buy one, you will have %r left over." % leftover_money |