Skip to content

Instantly share code, notes, and snippets.

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>
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:
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):
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