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 useful python ORM tools ### | |
### importance: ignore ### | |
import sqlalchemy as alch | |
from sqlalchemy.orm import declarative_base, sessionmaker, relationship | |
### create a database and the base class for our ORMs ### | |
### importance: ignore ### | |
engine = alch.create_engine("sqlite:///shelters.db", echo=False) | |
Base = declarative_base() |
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 React from "react" | |
export default function Layout({ children }) { | |
return ([ | |
<div class="container" key="0"> | |
<div class="header"> | |
<div class="float-left"> | |
<h4>vanshaj singhania</h4> | |
</div> | |
<div class="float-right"> |
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 import jsonify | |
app = Flask(__name__) | |
@app.route('/whereami') | |
def hello_world(): | |
return jsonify({"whereami":"you are here.",}) |