Skip to content

Instantly share code, notes, and snippets.

Ryan Gordon Ryan-Gordon

Block or report user

Report or block Ryan-Gordon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ryan-Gordon
Ryan-Gordon / gist:735cb7341882a22abe96ad7d304ab10d
Created Apr 23, 2018
Flask Dockerfile running using Gunicorn web server
View gist:735cb7341882a22abe96ad7d304ab10d
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 Apr 23, 2018
Flask Dockerfile running with Flask Web Server
View Dockerfile
FROM python:3.6
RUN mkdir /code
WORKDIR /code
ADD . /code/
RUN pip install -r requirements.txt
EXPOSE 2025
CMD ["python3", "/code/app.py"]
View firebaseListener.ts
//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;
}
});
View app.py
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 Oct 24, 2017
iris flower data set
View iris.csv
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
View gmitRooms.csv
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
You can’t perform that action at this time.