Skip to content

Instantly share code, notes, and snippets.

View itsvs's full-sized avatar

Vanshaj Singhania itsvs

View GitHub Profile
### 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()
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">
@itsvs
itsvs / api.py
Created July 10, 2018 01:28
Code for the "Where Am I?" API for Hack Club's Dumbest API challenge.
from flask import Flask
from flask import jsonify
app = Flask(__name__)
@app.route('/whereami')
def hello_world():
return jsonify({"whereami":"you are here.",})