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 | |
from flask_sqlalchemy import SQLAlchemy | |
app = Flask(__name__) | |
app.config.from_object('config.DevelopmentConfig') | |
db = SQLAlchemy(app) | |
class User(db.Model): | |
__tablename__ = 'users' |
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 pymysql | |
from flask import Blueprint, request, render_template, json, Flask | |
from flask_sqlalchemy import SQLAlchemy | |
from sqlalchemy import create_engine | |
from app.users_bundle.models import User | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy.exc import SQLAlchemyError | |
app = Flask(__name__) | |
app.config.from_object('config.DevelopmentConfig') |
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, render_template | |
from flask_sqlalchemy import SQLAlchemy | |
from sqlalchemy import create_engine | |
from sqlalchemy_utils import database_exists, create_database | |
from app.users_bundle.controllers import users_bundle | |
app = Flask(__name__) | |
app.config.from_object('config.DevelopmentConfig') | |
db = SQLAlchemy(app) |
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
<script> | |
var tab = null; | |
var menuSelector = null; | |
jQuery(function ($) { | |
console.log('test'); | |
//howtos tab | |
function changeMenuSelector() { | |
if ($( document ).width() > 967) { | |
menuSelector = 'top-menu-nav'; | |
} else { |
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 json | |
import urllib | |
from pprint import pprint | |
from urllib import request, parse | |
import pytest | |
from inspect import getsourcefile | |
from os import path, sys | |
current_dir = path.dirname(path.abspath(getsourcefile(lambda:0))) |
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 json | |
import urllib | |
from pprint import pprint | |
from urllib import request, parse | |
import pytest | |
from inspect import getsourcefile | |
from os import path, sys | |
current_dir = path.dirname(path.abspath(getsourcefile(lambda:0))) |
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
export const FETCH_USER = 'FETCH_USER'; | |
export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; |
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
export const FETCH_USER = 'FETCH_USER'; | |
export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; |
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
/* | |
eslint-disable react/prefer-stateless-function, react/jsx-boolean-value, | |
no-undef, jsx-a11y/label-has-for, react/jsx-first-prop-new-line | |
*/ | |
class TimersDashboard extends React.Component { | |
state = { | |
timers: [ | |
{ | |
title: 'Practice squat', | |
project: 'Gym Chores', |
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 {Observable} from "rxjs/Observable"; | |
import "rxjs/observable/concat"; | |
import "rxjs/observable/from"; | |
import "rxjs/observable/of"; | |
import "rxjs/add/operator/map"; | |
import "rxjs/add/operator/mergeMap"; | |
import "rxjs/add/operator/startWith"; | |
import "rxjs/add/operator/filter"; | |
import "rxjs/add/operator/switchMap"; |