Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Xevion
2019-07-23 23:05:27 -05:00
3 changed files with 19 additions and 2 deletions

View File

@@ -2,7 +2,11 @@
This page represents all my comments from my solutions currently hosted on [Exercism.io](https://exercism.io/). You can view my profile [here](https://exercism.io/profiles/Xevion). This page represents all my comments from my solutions currently hosted on [Exercism.io](https://exercism.io/). You can view my profile [here](https://exercism.io/profiles/Xevion).
The reason for this is simply to have a place where I can collect my comments, as well as just have some fun with Python and webscraping. Exercise file and exercise submission links will be provided for each and every exercise. The reason for this is simply to have a place where I can collect my comments, as well as just have some fun with Python and webscraping. Exercise file and exercise submission links will be provided for each and every exercise.
<<<<<<< HEAD
This file is for the **Python** track, contains **48** submissions, **18** of which have comments. This file was built on **24-07-2019** at **04:03:49 UTC**. This file is for the **Python** track, contains **48** submissions, **18** of which have comments. This file was built on **24-07-2019** at **04:03:49 UTC**.
=======
This file is for the **Python** track, contains **47** submissions, **17** of which have comments. This file was built on **23-07-2019** at **23:47:58 UTC**.
>>>>>>> refs/remotes/origin/master
## Word Count ## Word Count
@@ -233,12 +237,15 @@ I forgot that a couple things could be omitted, and decided to trim the nouns so
<<<<<<< HEAD
## Grep ## Grep
[Link to File](./grep/grep.py) | [Link to Submission](https://exercism.io/tracks/python/exercises/grep/solutions/c5d464b7392248d6adaab310e49803f5) [Link to File](./grep/grep.py) | [Link to Submission](https://exercism.io/tracks/python/exercises/grep/solutions/c5d464b7392248d6adaab310e49803f5)
I liked this exercise honestly. I learned about some new modules and methods, for example, while trying to create the invert flag, I was looking into how to negate the matching function, and the `functools` module allows one to create a wrapper that can negate any function you pass through it. I liked this exercise honestly. I learned about some new modules and methods, for example, while trying to create the invert flag, I was looking into how to negate the matching function, and the `functools` module allows one to create a wrapper that can negate any function you pass through it.
=======
>>>>>>> refs/remotes/origin/master
## Tournament ## Tournament
[Link to File](./tournament/tournament.py) | [Link to Submission](https://exercism.io/tracks/python/exercises/tournament/solutions/6617ee41fac443be992d3090e650a16e) [Link to File](./tournament/tournament.py) | [Link to Submission](https://exercism.io/tracks/python/exercises/tournament/solutions/6617ee41fac443be992d3090e650a16e)

View File

@@ -1,3 +1,4 @@
<<<<<<< HEAD
from functools import partial from functools import partial
all_flags = ['n', 'l', 'i', 'v', 'x', 'm'] # m for multiple files all_flags = ['n', 'l', 'i', 'v', 'x', 'm'] # m for multiple files
@@ -48,4 +49,8 @@ def grep_individual(pattern, flags, filename):
return filename return filename
return '' return ''
print(grep("may", "-n -m", ['grep_test.py'])) print(grep("may", "-n -m", ['grep_test.py']))
=======
def grep(pattern, flags, files):
pass
>>>>>>> refs/remotes/origin/master

View File

@@ -82,6 +82,11 @@ for track in tracks.keys():
file.write(markdown) file.write(markdown)
print('Wrote {} KiB file for {} track'.format(round(os.path.getsize(path) / 1024, 2), track)) print('Wrote {} KiB file for {} track'.format(round(os.path.getsize(path) / 1024, 2), track))
t2 = time.time() t2 = time.time()
<<<<<<< HEAD
# Sorry for this ridiculously long line. ;-; # Sorry for this ridiculously long line. ;-;
print('Downloaded {} MiB in webpages.\nDownloaded & parsed in {} seconds with {}ms on average request time.'.format(round(sum([i[1] for i in request_timings]) / (1024 ** 2), 2), round(t2 - t1, 2), round((sum(i[0] for i in request_timings) / len(request_timings)) * 1000, 2))) print('Downloaded {} MiB in webpages.\nDownloaded & parsed in {} seconds with {}ms on average request time.'.format(round(sum([i[1] for i in request_timings]) / (1024 ** 2), 2), round(t2 - t1, 2), round((sum(i[0] for i in request_timings) / len(request_timings)) * 1000, 2)))
=======
# Sorry for this ridiculously long line. ;-;
print('Downloaded {} MiB in webpages.\nDownloaded & Parsed in {} seconds with {}ms on average request time.'.format(round(sum([i[1] for i in request_timings]) / (1024 ** 2), 2), round(t2 - t1, 2), round((sum(i[0] for i in request_timings) / len(request_timings)) * 1000, 2)))
>>>>>>> refs/remotes/origin/master