This file contains 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 os | |
import re | |
import string | |
import random | |
path = "path_to_folder_just_about_set_of_text_files" | |
word = re.compile("\w*") | |
for x,y,z in os.walk(path): | |
for file in z: |
This file contains 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
from collections import Counter | |
words = [] | |
with open("/usr/share/dict/words","r") as f: | |
for line in f: | |
words.append(line.strip()) | |
words_list = [] | |
This file contains 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
from flask import Flask | |
app = Flask(__name__) | |
app.debug = True | |
@app.route("/") | |
def hello(): | |
return "Hello World!" | |
@app.route('/test') | |
def test_webhook(): |
This file contains 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
prefixes = 'JKLMNOPQ' | |
suffix = 'ack' | |
for letter in prefixes: | |
if letter == 'O' or 'Q': | |
print letter + 'u' + suffix | |
else: | |
print letter + suffix |
This file contains 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
pdf_path = os.path.join(os.path.dirname(__name__),'static/CCT',pdf_name) | |
#RENDER CCT TEMPLATE AND THEN CONVERT INTO A PDF | |
#Path to CCT templates | |
template_path = os.path.join(current_dir, 'static/CCT') | |
#Settings jinja environment paths | |
jinja_env = Environment(loader=FileSystemLoader(template_path)) |
This file contains 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
git --version | |
pwd | |
git init project1 | |
ls -al | |
cd project1 | |
ls -al | |
open . | |
which git | |
NewerOlder