Skip to content

Instantly share code, notes, and snippets.

View Ryan-Gordon's full-sized avatar

Ryan Gordon Ryan-Gordon

  • Galway, Ireland
View GitHub Profile
@Ryan-Gordon
Ryan-Gordon / gist:735cb7341882a22abe96ad7d304ab10d
Created April 23, 2018 20:10
Flask Dockerfile running using Gunicorn web server
FROM python:3.6
RUN mkdir /code
WORKDIR /code
ADD . /code/
RUN pip install -r requirements.txt
EXPOSE 2025
CMD ["gunicorn", "-c", "gunicorn.conf", "wsgi:application","-b", "0.0.0.0:2025"]
@Ryan-Gordon
Ryan-Gordon / Dockerfile
Created April 23, 2018 20:00
Flask Dockerfile running with Flask Web Server
FROM python:3.6
RUN mkdir /code
WORKDIR /code
ADD . /code/
RUN pip install -r requirements.txt
EXPOSE 2025
CMD ["python3", "/code/app.py"]
//Set up a listener for the when the AuthState changes (Login/Logout) and perform some action.
firebase.auth().onAuthStateChanged( user => {
if (user){
this.userProfile = user;
} else {
this.userProfile = null;
}
});
import os
import connexion
from flask_injector import FlaskInjector
from connexion.resolver import RestyResolver
from providers.CouchProvider import CouchProvider
from injector import Binder
def configure(binder: Binder) -> Binder:
binder.bind(
@Ryan-Gordon
Ryan-Gordon / iris.csv
Created October 24, 2017 10:09
iris flower data set
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3.0 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5.0 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5.0 3.4 1.5 0.2 Iris-setosa
4.4 2.9 1.4 0.2 Iris-setosa
4.9 3.1 1.5 0.1 Iris-setosa
id room capacity campus
0 CCAM104 WhiteRm 60 CCAM
1 CCAM107 107 60 CCAM
2 CCAM115 FASRm 30 CCAM
3 CCAM116 Print 117 60 CCAM
4 CCAM117 Print 60 CCAM
5 CCAM120 PrintWS 20 CCAM
6 CCAM121 PrintWS 20 CCAM
7 CCAM122 PrintWS 60 CCAM
8 CCAM123 PrintWS 20 CCAM