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
GNU nano 2.2.6 File: /etc/apache2/sites-available/FlaskApp.conf | |
<VirtualHost *:80> | |
ServerName 162.243.1.104 | |
ServerAdmin admin@mywebsite.com | |
WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi | |
<Directory /var/www/FlaskApp/FlaskApp/library/> | |
Order allow,deny | |
Allow from all | |
</Directory> |
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
import unittest | |
def find_anagrams(list_of_strings, word): | |
word = list(word) | |
answers = [] | |
for single_string in list_of_strings: | |
for index, letter in enumerate(word): | |
if letter == ' ': | |
continue | |
elif letter not in single_string: |
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
import unittest | |
def adjacent_digits_product(numb_str, digits_count): | |
numb_str = numb_str.replace("\n","") | |
x = 0 | |
y = 0 | |
z = 1 | |
highest_product = 0 | |
while x+digits_count <= len(numb_str): |
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
def find_next_prime(n): | |
while True: | |
n += 1 | |
for x in range(2,n+1): | |
if n % x == 0: | |
if x == n: | |
return n | |
else: | |
break | |