Skip to content

Instantly share code, notes, and snippets.

View cofinley's full-sized avatar

Connor Finley cofinley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cofinley on github.
  • I am binchar (https://keybase.io/binchar) on keybase.
  • I have a public key ASCGW5hDNL9rqKOlbKebISQNnc1z3sYEzO1mk7-7FZxpJwo

To claim this, I am signing this object:

@cofinley
cofinley / app.py
Last active March 19, 2018 20:37
Flask with Forms
from flask import Flask, render_template
from forms import RegistrationForm
app = Flask(__name__)
# Home page, just for showing routes with html files
@app.route('/home')
@app.route('/home/') # optional, just covers the following slash
@app.route('/home/<optional_subfolder>') # optional, just showing what you can do
def hello(optional_subfolder=None): # if parameter in route, you need to include parameter in function definition too
return render_template('home_page.html') # this html file goes in the folder "templates" in the project root folder
@cofinley
cofinley / frequency.txt
Last active July 4, 2024 07:45
French Frequency List - Top 5000 Words (Lemmatized, No Conjugations)
un
à
en
le
et
être
de
avoir
que
ne