Skip to content

Instantly share code, notes, and snippets.

View IbrahimAyed1's full-sized avatar

Ibrahim Ayed IbrahimAyed1

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.12 (/usr/bin/python2.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.12 (/usr/bin/python2.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
@IbrahimAyed1
IbrahimAyed1 / Poject2_.idea_Poject2.iml
Created October 25, 2018 08:43
Full Stack Nano-degree Project "Item catalog"
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.12 (/usr/bin/python2.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
@IbrahimAyed1
IbrahimAyed1 / flastApp.py
Created September 20, 2018 14:28
Menu Item App
from flask import Flask, render_template
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from db_test import Base, Restaurant, MenuItem
app = Flask(__name__)
engine = create_engine('sqlite:///restaurantmenu.db')
Base.metadata.bind = engine
@IbrahimAyed1
IbrahimAyed1 / restaurants.py
Created September 19, 2018 11:16
This code is Updating , deleting and adding queries in our DB it's not working for deleting till now
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from db_test import Restaurant, Base, MenuItem
import cgi
engine = create_engine('sqlite:///restaurantmenu.db')
Base.metadata.bind = engine
DBSession = sessionmaker(bind=engine)
session = DBSession()
<component name="ProjectDictionaryState">
<dictionary name="ibrahim">
<words>
<w>polymorphicly</w>
</words>
</dictionary>
</component>
<component name="ProjectDictionaryState">
<dictionary name="ibrahim">
<words>
<w>polymorphicly</w>
</words>
</dictionary>
</component>
<component name="ProjectDictionaryState">
<dictionary name="ibrahim">
<words>
<w>polymorphicly</w>
</words>
</dictionary>
</component>