You enter a room another room and the door locks behind you. You see a round red door and a tall black door. Which do you choose?
- Round Red Door
- Tall Black Door
-
-
diff --git a/Kyle_Marienthal/FLASK/choose_your_own_adventure/choose_your_own_adventure/templates/work.html b/Kyle_Marienthal/FLASK/choose_your_own_adventure/choose_your_own_adventure/templates/work.html
deleted file mode 100644
index 8beb2a8..0000000
--- a/Kyle_Marienthal/FLASK/choose_your_own_adventure/choose_your_own_adventure/templates/work.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- Choose Your Own Adventure
-
-
-
You have chosen poorly
-
we know you think this is bad, but take a closer looooooook
-
-
-
diff --git a/Kyle_Marienthal/FLASK/full_friends/mysqlconnection.py b/Kyle_Marienthal/FLASK/full_friends/mysqlconnection.py
deleted file mode 100644
index 54904e7..0000000
--- a/Kyle_Marienthal/FLASK/full_friends/mysqlconnection.py
+++ /dev/null
@@ -1,40 +0,0 @@
-""" import the necessary modules """
-from flask_sqlalchemy import SQLAlchemy
-from sqlalchemy.sql import text
-# Create a class that will give us an object that we can use to connect to a database
-class MySQLConnection(object):
- def __init__(self, app, db):
- config = {
- 'host': 'localhost',
- 'database': 'full_friends', # we got db as an argument
- 'user': 'root',
- 'password': '',
- 'port': '3306' # change the port to match the port your SQL server is running on
- }
- # this will use the above values to generate the path to connect to your sql database
- DATABASE_URI = "mysql://{}:{}@127.0.0.1:{}/{}".format(config['user'], config['password'], config['port'], config['database'])
- app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI
- app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
- # establish the connection to database
- self.db = SQLAlchemy(app)
- # this is the method we will use to query the database
- def query_db(self, query, data=None):
- result = self.db.session.execute(text(query), data)
- if query[0:6].lower() == 'select':
- # if the query was a select
- # convert the result to a list of dictionaries
- list_result = [dict(r) for r in result]
- # return the results as a list of dictionaries
- return list_result
- elif query[0:6].lower() == 'insert':
- # if the query was an insert, return the id of the
- # commit changes
- self.db.session.commit()
- # row that was inserted
- return result.lastrowid
- else:
- # if the query was an update or delete, return nothing and commit changes
- self.db.session.commit()
-# This is the module method to be called by the user in server.py. Make sure to provide the db name!
-def MySQLConnector(app, db):
- return MySQLConnection(app, db)
diff --git a/Kyle_Marienthal/FLASK/full_friends/server.py b/Kyle_Marienthal/FLASK/full_friends/server.py
deleted file mode 100644
index a0c1f37..0000000
--- a/Kyle_Marienthal/FLASK/full_friends/server.py
+++ /dev/null
@@ -1,79 +0,0 @@
-from flask import Flask, request, redirect, render_template, session, flash
-from datetime import datetime
-from mysqlconnection import MySQLConnector
-
-app = Flask(__name__)
-mysql = MySQLConnector(app, 'full_friends')
-
-import md5, os, binascii
-password = 'password'
-
-app.secret_key = 'secret_key'
-
-def validate_registration(form_data):
- errors = []
- if len('name') < 2:
- errors.append('need longer name')
- if len('username') < 2:
- errors.append('need longer username')
- if len('password') < 3:
- errors.append('need longer password')
- if 'confirm_password' != 'password':
- errors.append('confirmation doesnt match password')
-
-
-
-# Name
-# Username
-# Password:
-# Password Confirmation
-# Date of Birth
-
-def login_validation():
- if len('username') < 2:
- errors.append('need longer username')
- if len('password') < 3:
- errors.append('need longer password')
-# Username
-# Password
-
-@app.route("/")
-def home():
- return render_template("login_registration.html")
-
-@app.route("/process", methods = ["POST"])
-def process():
- salt = binascii.b2a_hex(os.urandom(15))
- hashed_pw = md5.new(request.form['password'] + salt).hexdigest()
- query = "INSERT INTO users(name, username, password, app_date, created_at, updated_at, salt) VALUES(:name, :username, :password, :app_date, now(), now(), :salt)"
-# the data library needs to be in the same order
- data = {
- 'name':request.form['name'],
- 'username':request.form['username'],
- 'password':request.form['password'],
- 'app_date':request.form['appointment_date'],
- 'salt':request.form['salt'],
-
- }
- print '**************',mysql.query_db(query, data)
- print '&&&&&&&&&&&&',request.form['appointment_date']
- # print what the user put in the form
- # date = datetime.strptime(request.form['appointment_date'], '%Y-%m-%d')
- # # putting the user data into the string parseDDDD time func with default date format
- # date_string = date.strftime('%b %d, %y')
- # # variable equals a date string in the format that you want
- # current_date = datetime.now()
- # # makes the current date
- #
- # print date_string
- # if date > current_date:
- # # if the date is greater then that means the number is higher/its in the future (vice versa)
- # errors.append("Are you from the future?")
-
- return redirect("/index")
-
-@app.route("/index")
-def index():
- return render_template("friends.html")
-
-app.run(debug=True)
diff --git a/Kyle_Marienthal/FLASK/full_friends/templates/friends.html b/Kyle_Marienthal/FLASK/full_friends/templates/friends.html
deleted file mode 100644
index 1be977b..0000000
--- a/Kyle_Marienthal/FLASK/full_friends/templates/friends.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
- Friends
-
-
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/tests.py b/Shivi_khanuja/Django/hello_world/apps/hello_world_app/tests.py
deleted file mode 100644
index 52f77f9..0000000
--- a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/tests.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.test import TestCase
-
-# Create your tests here.
diff --git a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/urls.py b/Shivi_khanuja/Django/hello_world/apps/hello_world_app/urls.py
deleted file mode 100644
index 6e18987..0000000
--- a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/urls.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from django.conf.urls import url ,include
-from django.contrib import admin
-import views
-
-urlpatterns = [
- url(r'^',views.index)
-]
diff --git a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/views.py b/Shivi_khanuja/Django/hello_world/apps/hello_world_app/views.py
deleted file mode 100644
index 10a100c..0000000
--- a/Shivi_khanuja/Django/hello_world/apps/hello_world_app/views.py
+++ /dev/null
@@ -1,5 +0,0 @@
-from django.shortcuts import render
-
-def index(request):
- return render(request, 'hello_world_app/index.html')
-
diff --git a/Shivi_khanuja/Django/hello_world/db.sqlite3 b/Shivi_khanuja/Django/hello_world/db.sqlite3
deleted file mode 100644
index da0ecc6..0000000
Binary files a/Shivi_khanuja/Django/hello_world/db.sqlite3 and /dev/null differ
diff --git a/Shivi_khanuja/Django/hello_world/main/settings.py b/Shivi_khanuja/Django/hello_world/main/settings.py
deleted file mode 100644
index fe74736..0000000
--- a/Shivi_khanuja/Django/hello_world/main/settings.py
+++ /dev/null
@@ -1,121 +0,0 @@
-"""
-Django settings for main project.
-
-Generated by 'django-admin startproject' using Django 1.11.4.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/topics/settings/
-
-For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.11/ref/settings/
-"""
-
-import os
-
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
-
-# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '&(pqf7nx-uj+v)y+pnxr$57)(tpnryh_s2)h$0fsqnux^m@h90'
-
-# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
-
-ALLOWED_HOSTS = []
-
-
-# Application definition
-
-INSTALLED_APPS = [
- 'apps.hello_world_app',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
-]
-
-MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
-]
-
-ROOT_URLCONF = 'main.urls'
-
-TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
-]
-
-WSGI_APPLICATION = 'main.wsgi.application'
-
-
-# Database
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
-
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-
-
-# Password validation
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
-
-AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
-]
-
-
-# Internationalization
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
-
-LANGUAGE_CODE = 'en-us'
-
-TIME_ZONE = 'UTC'
-
-USE_I18N = True
-
-USE_L10N = True
-
-USE_TZ = True
-
-
-# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
-
-STATIC_URL = '/static/'
diff --git a/Shivi_khanuja/Django/hello_world/main/urls.py b/Shivi_khanuja/Django/hello_world/main/urls.py
deleted file mode 100644
index b90f7d6..0000000
--- a/Shivi_khanuja/Django/hello_world/main/urls.py
+++ /dev/null
@@ -1,22 +0,0 @@
-"""main URL Configuration
-
-The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.11/topics/http/urls/
-Examples:
-Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
-Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
-Including another URLconf
- 1. Import the include() function: from django.conf.urls import url, include
- 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
-"""
-from django.conf.urls import url ,include
-from django.contrib import admin
-
-urlpatterns = [
- url(r'^admin/', admin.site.urls),
- url(r'^',include('apps.hello_world_app.urls'))
-]
diff --git a/Shivi_khanuja/Django/hello_world/manage.py b/Shivi_khanuja/Django/hello_world/manage.py
deleted file mode 100644
index 1a1848d..0000000
--- a/Shivi_khanuja/Django/hello_world/manage.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-
-if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
- try:
- from django.core.management import execute_from_command_line
- except ImportError:
- # The above import may fail for some other reason. Ensure that the
- # issue is really that Django is missing to avoid masking other
- # exceptions on Python 2.
- try:
- import django
- except ImportError:
- raise ImportError(
- "Couldn't import Django. Are you sure it's installed and "
- "available on your PYTHONPATH environment variable? Did you "
- "forget to activate a virtual environment?"
- )
- raise
- execute_from_command_line(sys.argv)
diff --git a/Shivi_khanuja/Django/regex.py b/Shivi_khanuja/Django/regex.py
deleted file mode 100644
index ccef059..0000000
--- a/Shivi_khanuja/Django/regex.py
+++ /dev/null
@@ -1,84 +0,0 @@
-import re
-def get_matching_words(regex):
- results = []
- words = [
- "baby",
- "baseball",
- "denver",
- "facetious",
- "issue",
- "mattress",
- "obsessive",
- "paranoia",
- "rabble",
- "union",
- "volleyball",
- "11234566",
- ]
- for word in words:
- if re.search(regex, word):
- results.append(word)
- return results
-
-
-my_expression = r"(\w)\1.*(\w)\2"
-print get_matching_words(my_expression)
-
-Answers
-python regex.py
-['denver', 'obsessive', 'volleyball']
-
-python regex.py
-['denver', 'obsessive', 'volleyball']
-
-$ python regex.py
-['baseball', 'issue', 'mattress', 'obsessive', 'rabble', 'volleyball', '11234566']
-
-r"ss"
-python regex.py
-['issue', 'mattress', 'obsessive']
-
-r"^b"
-python regex.py
-['baby']
-
-r"b.+b"
-python regex.py
-['baby', 'baseball']
-
-r"a.*e.*i.*o.*u.*"
-python regex.py
-['facetious']
-
-r"[aeiou][aeiou]$"
-python regex.py
-['issue', 'paranoia']
-
-r"^[regular expressions]+$"
-python regex.py
-['issue', 'paranoia', 'union']
-
-r"^[^regex]+$"
-python regex.py
-['baby', 'union', '11234566']
-
-r"b.*b"
-python regex.py
-['baby', 'baseball', 'rabble']
-
-r"b.?b"
-python regex.py
-['baby', 'rabble']
-
-r"io"
-python regex.py
-['facetious', 'union']
-
-r"e$"
-python regex.py
-['issue', 'obsessive', 'rabble']
-
-r"(\w)\1.*(\w)\2"
-python regex.py
-['mattress', 'volleyball', '11234566']
-
diff --git a/Shivi_khanuja/Django/session_word/app/__init__.py b/Shivi_khanuja/Django/session_word/app/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/Shivi_khanuja/Django/session_word/main/main/__init__.py b/Shivi_khanuja/Django/session_word/main/main/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/Shivi_khanuja/Django/session_word/main/main/settings.py b/Shivi_khanuja/Django/session_word/main/main/settings.py
deleted file mode 100644
index 6151489..0000000
--- a/Shivi_khanuja/Django/session_word/main/main/settings.py
+++ /dev/null
@@ -1,120 +0,0 @@
-"""
-Django settings for main project.
-
-Generated by 'django-admin startproject' using Django 1.11.4.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/topics/settings/
-
-For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.11/ref/settings/
-"""
-
-import os
-
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
-
-# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '%5#@-fdl3_y%9pott4-s@^&)&zx$cb48z2sjxo!s5z+zh+qz'
-
-# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
-
-ALLOWED_HOSTS = []
-
-
-# Application definition
-
-INSTALLED_APPS = [
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
-]
-
-MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
-]
-
-ROOT_URLCONF = 'main.urls'
-
-TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
-]
-
-WSGI_APPLICATION = 'main.wsgi.application'
-
-
-# Database
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
-
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-
-
-# Password validation
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
-
-AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
-]
-
-
-# Internationalization
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
-
-LANGUAGE_CODE = 'en-us'
-
-TIME_ZONE = 'UTC'
-
-USE_I18N = True
-
-USE_L10N = True
-
-USE_TZ = True
-
-
-# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
-
-STATIC_URL = '/static/'
diff --git a/Shivi_khanuja/Django/session_word/main/main/urls.py b/Shivi_khanuja/Django/session_word/main/main/urls.py
deleted file mode 100644
index 88724d8..0000000
--- a/Shivi_khanuja/Django/session_word/main/main/urls.py
+++ /dev/null
@@ -1,21 +0,0 @@
-"""main URL Configuration
-
-The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.11/topics/http/urls/
-Examples:
-Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
-Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
-Including another URLconf
- 1. Import the include() function: from django.conf.urls import url, include
- 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
-"""
-from django.conf.urls import url
-from django.contrib import admin
-
-urlpatterns = [
- url(r'^admin/', admin.site.urls),
-]
diff --git a/Shivi_khanuja/Django/session_word/main/main/wsgi.py b/Shivi_khanuja/Django/session_word/main/main/wsgi.py
deleted file mode 100644
index 064e759..0000000
--- a/Shivi_khanuja/Django/session_word/main/main/wsgi.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""
-WSGI config for main project.
-
-It exposes the WSGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
-"""
-
-import os
-
-from django.core.wsgi import get_wsgi_application
-
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
-
-application = get_wsgi_application()
diff --git a/Shivi_khanuja/Django/session_word/main/manage.py b/Shivi_khanuja/Django/session_word/main/manage.py
deleted file mode 100644
index 1a1848d..0000000
--- a/Shivi_khanuja/Django/session_word/main/manage.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-
-if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
- try:
- from django.core.management import execute_from_command_line
- except ImportError:
- # The above import may fail for some other reason. Ensure that the
- # issue is really that Django is missing to avoid masking other
- # exceptions on Python 2.
- try:
- import django
- except ImportError:
- raise ImportError(
- "Couldn't import Django. Are you sure it's installed and "
- "available on your PYTHONPATH environment variable? Did you "
- "forget to activate a virtual environment?"
- )
- raise
- execute_from_command_line(sys.argv)
diff --git a/Shivi_khanuja/Flask/disappearing_ninja.zip b/Shivi_khanuja/Flask/disappearing_ninja.zip
deleted file mode 100644
index 6d16e5f..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja.zip and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/server.py b/Shivi_khanuja/Flask/disappearing_ninja/server.py
deleted file mode 100644
index 04ea49b..0000000
--- a/Shivi_khanuja/Flask/disappearing_ninja/server.py
+++ /dev/null
@@ -1,30 +0,0 @@
-from flask import Flask, render_template , request
-app = Flask (__name__)
-
-@app.route('/')
-def index():
- return render_template('index.html')
-
-@app.route('/ninja' , methods=['POST'])
-def ninja():
- return render_template('ninja.html')
-
-@app.route ('/ninja/')
-def showUserProfile(x):
- # myRange = ['red','blue','yellow','green']
- # for x in myRange:
- if x == 'yellow':
- myImg = "../static/img/donatello.jpg"
-
- elif x == 'red':
- myImg = "../static/img/raphael.jpg"
- elif x == 'green':
- myImg = "../static/img/michelangelo.jpg"
- else :
- myImg = "../static/img/leonardo.jpg"
-
- print myImg
-
- return render_template('ninja.html', myImg=myImg)
-
-app.run(debug=True)
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._donatello.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._donatello.jpg
deleted file mode 100644
index d985617..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._donatello.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._leonardo.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._leonardo.jpg
deleted file mode 100644
index d985617..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._leonardo.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._michelangelo.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._michelangelo.jpg
deleted file mode 100644
index d985617..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._michelangelo.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._notapril.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._notapril.jpg
deleted file mode 100644
index d985617..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._notapril.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._raphael.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._raphael.jpg
deleted file mode 100644
index d985617..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._raphael.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._tmnt.png b/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._tmnt.png
deleted file mode 100644
index 5dffe3a..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/__MACOSX/._tmnt.png and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/donatello.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/donatello.jpg
deleted file mode 100644
index 8912292..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/donatello.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/leonardo.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/leonardo.jpg
deleted file mode 100644
index c049cfd..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/leonardo.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/michelangelo.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/michelangelo.jpg
deleted file mode 100644
index 4ad75d0..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/michelangelo.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/notapril.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/notapril.jpg
deleted file mode 100644
index 39b2f0a..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/notapril.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/raphael.jpg b/Shivi_khanuja/Flask/disappearing_ninja/static/img/raphael.jpg
deleted file mode 100644
index 57fb2a3..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/raphael.jpg and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/img/tmnt.png b/Shivi_khanuja/Flask/disappearing_ninja/static/img/tmnt.png
deleted file mode 100644
index 941c82e..0000000
Binary files a/Shivi_khanuja/Flask/disappearing_ninja/static/img/tmnt.png and /dev/null differ
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/static/style.css b/Shivi_khanuja/Flask/disappearing_ninja/static/style.css
deleted file mode 100644
index e69de29..0000000
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/templates/.vscode/settings.json b/Shivi_khanuja/Flask/disappearing_ninja/templates/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/disappearing_ninja/templates/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/templates/index.html b/Shivi_khanuja/Flask/disappearing_ninja/templates/index.html
deleted file mode 100644
index bf783ea..0000000
--- a/Shivi_khanuja/Flask/disappearing_ninja/templates/index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
"No ninjas here"
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/disappearing_ninja/templates/ninja.html b/Shivi_khanuja/Flask/disappearing_ninja/templates/ninja.html
deleted file mode 100644
index 1ae6a51..0000000
--- a/Shivi_khanuja/Flask/disappearing_ninja/templates/ninja.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/dojosurvey1/.vscode/settings.json b/Shivi_khanuja/Flask/dojosurvey1/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/dojosurvey1/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/dojosurvey1/server.py b/Shivi_khanuja/Flask/dojosurvey1/server.py
deleted file mode 100644
index 32dab71..0000000
--- a/Shivi_khanuja/Flask/dojosurvey1/server.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from flask import Flask, render_template, redirect, session , request, flash
-
-app = Flask (__name__)
-
-app.secret_key = "secret"
-
-def validate(form_data):
- errors = False
-
- if len(form_data['name']) == 0:
- flash("Name can not be blank")
- errors = True
- return errors
-
-
-@app.route ('/')
-def index():
- return render_template('index.html')
-
-@app.route('/process', methods=['POST'])
-def process():
- errors = validate(request.form)
- if errors:
- return redirect('/')
- else:
- session['survey'] = request.form
- return redirect('/result')
-
-@app.route('/result')
-def result():
- data = session['survey']
-
- return render_template('result.html', data=data)
-
-app.run(debug=True)
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/dojosurvey1/templates/index.html b/Shivi_khanuja/Flask/dojosurvey1/templates/index.html
deleted file mode 100644
index c2c26ef..0000000
--- a/Shivi_khanuja/Flask/dojosurvey1/templates/index.html
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
- Document
-
-
- {% with messages = get_flashed_messages() %}
- {% if messages %}
-
- {% for message in messages %}
-
{{ message }}
- {% endfor %}
-
- {% endif %}
- {% endwith %}
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/dojosurvey1/templates/result.html b/Shivi_khanuja/Flask/dojosurvey1/templates/result.html
deleted file mode 100644
index 7b89d9c..0000000
--- a/Shivi_khanuja/Flask/dojosurvey1/templates/result.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- Document
-
-
-
-
Submitted Info
-
Name:{{ data.name }}
-
Dojo Location:{{data.location}}
-
Favorite Language:{{data.language}}
-
Comment:{{data.comment if data.comment != "" else "No comment"}}
-
-
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/hello_flask/.vscode/settings.json b/Shivi_khanuja/Flask/hello_flask/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/hello_flask/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/hello_flask/hello.py b/Shivi_khanuja/Flask/hello_flask/hello.py
deleted file mode 100644
index 7991eb9..0000000
--- a/Shivi_khanuja/Flask/hello_flask/hello.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from flask import Flask
-app = Flask (__name__)
-
-@app.route('/')
-
-
-def hello_world():
- return "Hello World"
-
-app.run(debug=True)
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/hello_world.zip b/Shivi_khanuja/Flask/hello_world.zip
deleted file mode 100644
index cee6394..0000000
Binary files a/Shivi_khanuja/Flask/hello_world.zip and /dev/null differ
diff --git a/Shivi_khanuja/Flask/hello_world/.vscode/settings.json b/Shivi_khanuja/Flask/hello_world/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/hello_world/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/hello_world/server.py b/Shivi_khanuja/Flask/hello_world/server.py
deleted file mode 100644
index 12ef2b6..0000000
--- a/Shivi_khanuja/Flask/hello_world/server.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from flask import Flask, render_template
-
-app = Flask(__name__)
-
-@app.route('/')
-def index():
- return render_template('index.html')
-
-
-app.run (debug=True)
diff --git a/Shivi_khanuja/Flask/hello_world/templates/index.html b/Shivi_khanuja/Flask/hello_world/templates/index.html
deleted file mode 100644
index 761324f..0000000
--- a/Shivi_khanuja/Flask/hello_world/templates/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
Hello_World!!!!!!!!!!
-
My name is Anna
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/portfolio.zip b/Shivi_khanuja/Flask/portfolio.zip
deleted file mode 100644
index 203027a..0000000
Binary files a/Shivi_khanuja/Flask/portfolio.zip and /dev/null differ
diff --git a/Shivi_khanuja/Flask/portfolio/.vscode/settings.json b/Shivi_khanuja/Flask/portfolio/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/portfolio/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/portfolio/server.py b/Shivi_khanuja/Flask/portfolio/server.py
deleted file mode 100644
index 58c01ff..0000000
--- a/Shivi_khanuja/Flask/portfolio/server.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from flask import Flask, render_template
-
-app = Flask (__name__)
-@app.route ('/')
-
-def index():
- return render_template("index.html")
-
-@app.route ('/projects')
-
-def projects():
- return render_template("projects.html")
-
-@app.route ('/about')
-
-def about():
- return render_template("about.html")
-
-app.run (debug=True)
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/portfolio/templates/about.html b/Shivi_khanuja/Flask/portfolio/templates/about.html
deleted file mode 100644
index 4687b4b..0000000
--- a/Shivi_khanuja/Flask/portfolio/templates/about.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis illo minima, quisquam ab similique officiis cum saepe eius sequi nihil hic molestias modi unde odio voluptas harum animi, consectetur dolorem!
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/portfolio/templates/index.html b/Shivi_khanuja/Flask/portfolio/templates/index.html
deleted file mode 100644
index b00a2e0..0000000
--- a/Shivi_khanuja/Flask/portfolio/templates/index.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
Welcome to my portfolio!My name is Anna!
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/portfolio/templates/projects.html b/Shivi_khanuja/Flask/portfolio/templates/projects.html
deleted file mode 100644
index 8574851..0000000
--- a/Shivi_khanuja/Flask/portfolio/templates/projects.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
Danger Zones
-
Fat Unicorn: The Poopening
-
My Cohort
-
Certify Me
-
Woof Woof Go!
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/whats_my_name3 (2).zip b/Shivi_khanuja/Flask/whats_my_name3 (2).zip
deleted file mode 100644
index 805db10..0000000
Binary files a/Shivi_khanuja/Flask/whats_my_name3 (2).zip and /dev/null differ
diff --git a/Shivi_khanuja/Flask/whats_my_name3/.vscode/settings.json b/Shivi_khanuja/Flask/whats_my_name3/.vscode/settings.json
deleted file mode 100644
index d88899c..0000000
--- a/Shivi_khanuja/Flask/whats_my_name3/.vscode/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "python.linting.pylintEnabled": false
-}
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/whats_my_name3/server.py b/Shivi_khanuja/Flask/whats_my_name3/server.py
deleted file mode 100644
index c7aa7e6..0000000
--- a/Shivi_khanuja/Flask/whats_my_name3/server.py
+++ /dev/null
@@ -1,14 +0,0 @@
-from flask import Flask, render_template, redirect, request
-app = Flask(__name__)
-
-@app.route("/")
-def index():
- return render_template("index.html")
-
-@app.route("/process", methods=['POST'])
-def process_form():
- print request.form
- name = request.form ['name']
- return render_template("process.html" , name=name)
-
-app.run(debug=True)
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/whats_my_name3/templates/index.html b/Shivi_khanuja/Flask/whats_my_name3/templates/index.html
deleted file mode 100644
index 6e4a762..0000000
--- a/Shivi_khanuja/Flask/whats_my_name3/templates/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- What's My Name
-
-
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Flask/whats_my_name3/templates/process.html b/Shivi_khanuja/Flask/whats_my_name3/templates/process.html
deleted file mode 100644
index e7b47ee..0000000
--- a/Shivi_khanuja/Flask/whats_my_name3/templates/process.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- Document
-
-
-
-
-
\ No newline at end of file
diff --git a/Shivi_khanuja/Store.py b/Shivi_khanuja/Store.py
deleted file mode 100644
index 1c50ee2..0000000
--- a/Shivi_khanuja/Store.py
+++ /dev/null
@@ -1,3 +0,0 @@
-class Store (object):
- def __init__.py (self, owner, location):
- self.product = product
\ No newline at end of file
diff --git a/Shivi_khanuja/bike.py b/Shivi_khanuja/bike.py
deleted file mode 100644
index 87a1094..0000000
--- a/Shivi_khanuja/bike.py
+++ /dev/null
@@ -1,41 +0,0 @@
-class Bike(object):
- def __init__(self, price, max_speed):
- self.price = price
- self.max_speed = max_speed
- self.miles = 0
-
- def displayInfo(self):
- print 'Price is: $ ' + str(self.price)
- print 'Max Speed is: ' + str(self.max_speed) + 'mph'
- print 'Total Miles is: ' + str(self.miles) + 'miles'
- return self
-
- def drive(self):
- print 'Driving'
- self.miles += 10
- return self
-
- def reverse(self):
- print 'Reversing'
- if self.miles >= 5:
- miles -= 5
- return self
- else:
- self.miles -= 0
- print "Can't reverse anymore"
- return self
-
-
-CRX = Bike(220, 9)
-Suzuki = Bike(120, 15)
-Fuji = Bike(180, 12)
-
-print CRX.price
-print Suzuki.max_speed
-print Fuji.price
-
-CRX.reverse()
-Suzuki.drive().drive().reverse()
-CRX.drive().drive().reverse().displayInfo()
-Fuji.ride().ride().reverse().reverse().displayInfo()
-Road.reverse().reverse().reverse().displayInfo()
\ No newline at end of file
diff --git a/Shivi_khanuja/callcenter.py b/Shivi_khanuja/callcenter.py
deleted file mode 100644
index e69de29..0000000
diff --git a/Shivi_khanuja/fundametals.py b/Shivi_khanuja/fundametals.py
deleted file mode 100644
index 0eca6c4..0000000
--- a/Shivi_khanuja/fundametals.py
+++ /dev/null
@@ -1,19 +0,0 @@
-#def odd_even():
- #for i in range (0,2001):
- #if i % 2 == 0:
- #print i, "This is even number"
- #else:
- # print i, "This is odd number"
-
-#odd_even()
-
-
-#def multiply(arr, num):
- #for x in range (0, len(arr)):
- # arr[x] *= num
- #return arr
-
-#number_arr = [2,4,10,16]
-#print multiply (number_arr,5)
-
-
diff --git a/Shivi_khanuja/mySQL/Blogs.mwb b/Shivi_khanuja/mySQL/Blogs.mwb
deleted file mode 100644
index 016bca7..0000000
Binary files a/Shivi_khanuja/mySQL/Blogs.mwb and /dev/null differ
diff --git a/Shivi_khanuja/mySQL/Blogs.mwb.bak b/Shivi_khanuja/mySQL/Blogs.mwb.bak
deleted file mode 100644
index 9d142dc..0000000
Binary files a/Shivi_khanuja/mySQL/Blogs.mwb.bak and /dev/null differ
diff --git a/Shivi_khanuja/mySQL/Books.mwb b/Shivi_khanuja/mySQL/Books.mwb
deleted file mode 100644
index f9af506..0000000
Binary files a/Shivi_khanuja/mySQL/Books.mwb and /dev/null differ
diff --git a/Shivi_khanuja/mySQL/Books.mwb.bak b/Shivi_khanuja/mySQL/Books.mwb.bak
deleted file mode 100644
index 20726e0..0000000
Binary files a/Shivi_khanuja/mySQL/Books.mwb.bak and /dev/null differ
diff --git a/Shivi_khanuja/mySQL/Friendship.mwb b/Shivi_khanuja/mySQL/Friendship.mwb
deleted file mode 100644
index 7ef6a96..0000000
Binary files a/Shivi_khanuja/mySQL/Friendship.mwb and /dev/null differ
diff --git a/Shivi_khanuja/mySQL/RPS/mysqlconnection.py b/Shivi_khanuja/mySQL/RPS/mysqlconnection.py
deleted file mode 100644
index 7e8f143..0000000
--- a/Shivi_khanuja/mySQL/RPS/mysqlconnection.py
+++ /dev/null
@@ -1,40 +0,0 @@
-""" import the necessary modules """
-from flask_sqlalchemy import SQLAlchemy
-from sqlalchemy.sql import text
-# Create a class that will give us an object that we can use to connect to a database
-class MySQLConnection(object):
- def __init__(self, app, db):
- config = {
- 'host': 'localhost',
- 'database': db, # we got db as an argument
- 'user': 'root',
- 'password': 'root',
- 'port': '3306' # change the port to match the port your SQL server is running on
- }
- # this will use the above values to generate the path to connect to your sql database
- DATABASE_URI = "mysql://{}:{}@127.0.0.1:{}/{}".format(config['user'], config['password'], config['port'], config['database'])
- app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI
- app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
- # establish the connection to database
- self.db = SQLAlchemy(app)
- # this is the method we will use to query the database
- def query_db(self, query, data=None):
- result = self.db.session.execute(text(query), data)
- if query[0:6].lower() == 'select':
- # if the query was a select
- # convert the result to a list of dictionaries
- list_result = [dict(r) for r in result]
- # return the results as a list of dictionaries
- return list_result
- elif query[0:6].lower() == 'insert':
- # if the query was an insert, return the id of the
- # commit changes
- self.db.session.commit()
- # row that was inserted
- return result.lastrowid
- else:
- # if the query was an update or delete, return nothing and commit changes
- self.db.session.commit()
-# This is the module method to be called by the user in server.py. Make sure to provide the db name!
-def MySQLConnector(app, db):
- return MySQLConnection(app, db)
diff --git a/Shivi_khanuja/mySQL/RPS/server.py b/Shivi_khanuja/mySQL/RPS/server.py
deleted file mode 100644
index 9056584..0000000
--- a/Shivi_khanuja/mySQL/RPS/server.py
+++ /dev/null
@@ -1,120 +0,0 @@
-from flask import Flask, render_template, redirect, request, session, flash
-from mysqlconnection import MySQLConnector
-import random
-import sys
-
-
-
-ROCK = 0
-PAPER = 1
-SCISSORS = 2
-
-
-
-def log(obj):
- print(obj, file=sys.stderr)
-
-
-app = Flask(__name__)
-
-app.secret_key = "secret"
-
-mysql = MySQLConnector(app, 'mydb')
-
-@app.route("/")
-def index():
- log(mysql.query_db("SELECT * FROM user"))
- return render_template("index.html")
-
-
-
-@app.route("/game")
-def game():
- query = "SELECT wins, losses, ties FROM user WHERE name = :name"
- data = mysql.query_db(query, {'name': session['name']})
-
- return render_template("game.html", name = session['name'], wins = data[0]['wins'], losses = data[0]['losses'], ties = data[0]['ties'])
-
-
-
-
-
-
-
-
-
-@app.route("/login", methods=["POST"])
-def login():
- if not 'name' in session:
- if not 'name' in request.form:
- redirect ('/')
- session['name'] = request.form['name']
-
- session['name'] = request.form['name']
-
-
- temp = mysql.query_db("SELECT COUNT(name) AS count FROM user WHERE name = :name", {"name":session['name']})
- if temp[0]['count'] == 0:
- mysql.query_db("INSERT INTO user(name, wins, losses, ties) VALUES( :name, 0,0,0 )", {"name": session['name']})
- log(mysql.query_db("SELECT * FROM user"))
-
- return redirect("/game")
-
-
-@app.route('/process', methods=['POST'])
-def process():
- computer = random.randint(0,2)
- result = ""
-
- if computer == ROCK:
- if int(request.form['choice']) == PAPER:
- flash("The Computer picked rock \n you picked paper, You Win!")
- result = "win"
-
- elif int(request.form['choice']) == SCISSORS:
- flash("The Computer picked rock \n you picked scissors, You Lose!")
- result = "lose"
- elif int(request.form['choice']) == ROCK:
- flash("The Computer picked rock \n you picked rock, You tie!")
- result = "tie"
- elif computer == PAPER:
- if int(request.form['choice']) == PAPER:
- flash("The Computer picked paper \n you picked paper, You Tie!")
- result = "tie"
- elif int(request.form['choice']) == SCISSORS:
- flash("The Computer picked paper \n you picked scissors, You Win!")
- result = "win"
- elif int(request.form['choice']) == ROCK:
- flash("The Computer picked paper \n you picked rock, You Lose!")
- result = "lose"
- elif computer == SCISSORS:
- if int(request.form['choice']) == PAPER:
- flash("The Computer picked scissors \n you picked paper, You Lose!")
- result = "lose"
- elif int(request.form['choice']) == SCISSORS:
- flash("The Computer picked scissors \n you picked scissors, You Tie!")
- result = "tie"
- elif int(request.form['choice']) == ROCK:
- flash("The Computer picked scissors \n you picked rock, You Win!")
- result = "win"
-
- if result == "win":
- query= "UPDATE user SET wins = wins+1 WHERE name = :name"
- data = {'name': session['name']}
- mysql.query_db(query, data)
- if result == "lose":
- query= "UPDATE user SET losses = losses+1 WHERE name = :name"
- data = {'name': session['name']}
- mysql.query_db(query, data)
- if result == "tie":
- query= "UPDATE user SET ties = ties+1 WHERE name = :name"
- data = {'name': session['name']}
- mysql.query_db(query, data)
-
-
- return redirect('/game')
-
-
-
-
-app.run(debug=True)
diff --git a/Shivi_khanuja/mySQL/RPS/templates/game.html b/Shivi_khanuja/mySQL/RPS/templates/game.html
deleted file mode 100644
index cba7bc6..0000000
--- a/Shivi_khanuja/mySQL/RPS/templates/game.html
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
- Rock Paper Scissors
-
-
-
-
-
-
You are logged in as: {{ name }}
-
-
-
Wins: {{ wins }}
-
Losses: {{ losses }}
-
ties {{ ties }}
-
-
Rock Paper Scissors
-
-
- {% with messages = get_flashed_messages()%}
- {% if messages %}
- {% for message in messages %}
-
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/hello_flask/hello.py b/daniel_guerrero/flask_fundamentals/hello_flask/hello.py
deleted file mode 100644
index 5f50967..0000000
--- a/daniel_guerrero/flask_fundamentals/hello_flask/hello.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from flask import Flask, render_template # Import Flask to allow us to create our app, and import
- # render_template to allow us to render index.html.
-app = Flask(__name__) # Global variable __name__ tells Flask whether or not we
- # are running the file directly or importing it as a module.
-@app.route('/') # The "@" symbol designates a "decorator" which attaches the
- # following function to the '/' route. This means that
- # whenever we send a request to localhost:5000/ we will run
- # the following "hello_world" function.
-def hello_world():
- return render_template('index.html') # Render the template and return it!
-
-@app.route('/projects')
-def projects():
- return render_template('projects.html') # Render the template and return it!
-
-@app.route('/about')
-def about():
- return render_template('about.html') # Render the template and return it!
-
-
-app.run(debug=True) # Run the app in debug mode.
diff --git a/daniel_guerrero/flask_fundamentals/hello_flask/templates/about.html b/daniel_guerrero/flask_fundamentals/hello_flask/templates/about.html
deleted file mode 100644
index a58e3ce..0000000
--- a/daniel_guerrero/flask_fundamentals/hello_flask/templates/about.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
- I am a Python web developer and love going to the hackathons in my spare tiem. I love making things
- and meeting new people! People might be surprised to learn that I own a horse and used to be a horse
- trainer!
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/hello_flask/templates/index.html b/daniel_guerrero/flask_fundamentals/hello_flask/templates/index.html
deleted file mode 100644
index 61e0881..0000000
--- a/daniel_guerrero/flask_fundamentals/hello_flask/templates/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
Hello World
-
Whatever
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/hello_flask/templates/projects.html b/daniel_guerrero/flask_fundamentals/hello_flask/templates/projects.html
deleted file mode 100644
index bcabc07..0000000
--- a/daniel_guerrero/flask_fundamentals/hello_flask/templates/projects.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
- Gold Fish Snatch
- Meditation Splits
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/drunkdisco.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/drunkdisco.html
deleted file mode 100644
index d790719..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/drunkdisco.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
Drunk Disco Training
-
-
-
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/goldfish.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/goldfish.html
deleted file mode 100644
index c749ed3..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/goldfish.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
Gold Fish Training!
-
-
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/jean_claude.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/jean_claude.html
deleted file mode 100644
index e90c60f..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/jean_claude.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
Choose Your Tournament
-
-
-
- BLOODSPORT
- KICKBOXER
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/kickboxing.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/kickboxing.html
deleted file mode 100644
index 47eae10..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/kickboxing.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
Kicking Trees Training
-
-
- Kick Trees
- Drunk Disco
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/kicktrees.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/kicktrees.html
deleted file mode 100644
index 1cd069d..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/kicktrees.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
Choose Your Training
-
-
-
-
\ No newline at end of file
diff --git a/daniel_guerrero/flask_fundamentals/jvcd/templates/splits.html b/daniel_guerrero/flask_fundamentals/jvcd/templates/splits.html
deleted file mode 100644
index acef652..0000000
--- a/daniel_guerrero/flask_fundamentals/jvcd/templates/splits.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- Jean Claude Van Damme
-
-
-
-
-
-
diff --git a/daniel_guerrero/flask_fundamentals/whatsmyname/templates/users.html b/daniel_guerrero/flask_fundamentals/whatsmyname/templates/users.html
deleted file mode 100644
index f2a91ed..0000000
--- a/daniel_guerrero/flask_fundamentals/whatsmyname/templates/users.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/daniel_guerrero/flask_fundamentals/whatsmyname/whatsmyname.py b/daniel_guerrero/flask_fundamentals/whatsmyname/whatsmyname.py
deleted file mode 100644
index 027d168..0000000
--- a/daniel_guerrero/flask_fundamentals/whatsmyname/whatsmyname.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from flask import Flask, render_template
-app = Flask(__name__)
-
-@app.route('/')
-
-def index():
- return render_template('index.html')
-
-@app.route('/ninjas')
-def ninjas():
- return render_template('users.html')
-
-
-
-app.run(debug=True)
diff --git a/daniel_guerrero/mysql/flask_mysql/mydb.mwb b/daniel_guerrero/mysql/flask_mysql/mydb.mwb
deleted file mode 100644
index b743e1c..0000000
Binary files a/daniel_guerrero/mysql/flask_mysql/mydb.mwb and /dev/null differ
diff --git a/daniel_guerrero/mysql/flask_mysql/mydb.mwb.bak b/daniel_guerrero/mysql/flask_mysql/mydb.mwb.bak
deleted file mode 100644
index 4cf7c31..0000000
Binary files a/daniel_guerrero/mysql/flask_mysql/mydb.mwb.bak and /dev/null differ
diff --git a/daniel_guerrero/mysql/flask_mysql/mysqlconnection.py b/daniel_guerrero/mysql/flask_mysql/mysqlconnection.py
deleted file mode 100644
index 3adc284..0000000
--- a/daniel_guerrero/mysql/flask_mysql/mysqlconnection.py
+++ /dev/null
@@ -1,58 +0,0 @@
-""" import the necessary modules """
-from flask_sqlalchemy import SQLAlchemy
-from sqlalchemy.sql import text
-
-
-
-# Create a class that will give us an object that we can use to connect to a database
-class MySQLConnection(object):
- def __init__(self, app, db):
- config = {
- 'host': 'localhost',
-
- 'database': db, # we got db as an argument
- 'user': 'root',
- 'password': 'root',
-
- 'port': '3306' # change the port to match the port your SQL server is running on
- }
-
-
-
-
- # this will use the above values to generate the path to connect to your sql database
- DATABASE_URI = "mysql://{}:{}@127.0.0.1:{}/{}".format(config['user'], config['password'], config['port'], config['database'])
- app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI
- app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
-
-
- # establish the connection to database
- self.db = SQLAlchemy(app)
-
- # this is the method we will use to query the database
- def query_db(self, query, data=None):
- result = self.db.session.execute(text(query), data)
- if query[0:6].lower() == 'select':
-
- # if the query was a select
- # convert the result to a list of dictionaries
- list_result = [dict(r) for r in result]
-
- # return the results as a list of dictionaries
- return list_result
- elif query[0:6].lower() == 'insert':
-
- # if the query was an insert, return the id of the
- # commit changes
- self.db.session.commit()
-
- # row that was inserted
- return result.lastrowid
- else:
-
- # if the query was an update or delete, return nothing and commit changes
- self.db.session.commit()
-
-# This is the module method to be called by the user in server.py. Make sure to provide the db name!
-def MySQLConnector(app, db):
- return MySQLConnection(app, db)
diff --git a/daniel_guerrero/mysql/flask_mysql/server.py b/daniel_guerrero/mysql/flask_mysql/server.py
deleted file mode 100644
index 734c929..0000000
--- a/daniel_guerrero/mysql/flask_mysql/server.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from flask import Flask, render_template
-
-
-# import the Connector function
-from mysqlconnection import MySQLConnector
-app = Flask(__name__)
-
-
-# connect and store the connection in "mysql" note that you pass the database name to the function
-mysql = MySQLConnector(app, 'mydb')
-
-
-# an example of running a query
-@app.route('/')
-def index():
- print mysql.query_db("SELECT * FROM users")
- return render_template('index.html')
-
-
-app.run(debug=True)
-
-
diff --git a/daniel_guerrero/mysql/flask_mysql/static/index.css b/daniel_guerrero/mysql/flask_mysql/static/index.css
deleted file mode 100644
index 0e36810..0000000
--- a/daniel_guerrero/mysql/flask_mysql/static/index.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body
-{
-}
\ No newline at end of file
diff --git a/daniel_guerrero/mysql/flask_mysql/templates/index.html b/daniel_guerrero/mysql/flask_mysql/templates/index.html
deleted file mode 100644
index b979573..0000000
--- a/daniel_guerrero/mysql/flask_mysql/templates/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- Friends
-
-
-
These are all my friends!
-
First Name: Jay
-
Last Name: Patel
-
Occupation: Instructor
-
-
First Name: Jimmy
-
Last Name: Jun
-
Occupation: Instructor
-
-
Add a Friend
-
-
-
diff --git a/joy_stoffer/bike.py b/joy_stoffer/bike.py
deleted file mode 100644
index 7cc5e98..0000000
--- a/joy_stoffer/bike.py
+++ /dev/null
@@ -1,49 +0,0 @@
-class Bike(object):
- def __init__(self, price, max_speed, miles = 0):
- self.price = price
- self.max_speed = max_speed
- self.miles = miles
-
- def displayInfo(self):
- print 'Price is :$'+ str(self.price)
- print 'Maximum Speed:' + str(self.max_speed) +'mph'
- print 'Total Miles:' + str(self.miles) + ' miles'
- return self
-
- def ride(self):
- self.miles += 10
- print 'riding on and rode ' + str(self.miles)
- return self
- #if you reverse less
- def reverse(self):
- if self.miles > 5:
- self.miles -= 5
- print 'Had to go back... now total miles is ' + str(self.miles)
- return self
- else:
- self.miles -= 0
- print 'Flat tire, day over'
- return self
-
-print 'Bike One'
-bike1 = Bike('2000','15')
-bike1.ride()
-bike1.ride()
-bike1.ride()
-bike1.reverse()
-bike1.displayInfo()
-
-print 'Bike Two'
-bike2 = Bike('1500', '13')
-bike2.ride()
-bike2.ride()
-bike2.reverse()
-bike2.reverse()
-bike2.displayInfo()
-
-print 'Bike Three'
-bike3 = Bike('1000', '10')
-bike3.reverse()
-bike3.reverse()
-bike3.reverse()
-bike3.displayInfo()
diff --git a/kevin_camp/django/multiple_apps/apps/__init__.py b/kevin_camp/django/multiple_apps/apps/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/__init__.py b/kevin_camp/django/multiple_apps/apps/blogs/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/admin.py b/kevin_camp/django/multiple_apps/apps/blogs/admin.py
deleted file mode 100644
index 4255847..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/admin.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.contrib import admin
-
-# Register your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/apps.py b/kevin_camp/django/multiple_apps/apps/blogs/apps.py
deleted file mode 100644
index 97c80a2..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/apps.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.apps import AppConfig
-
-
-class BlogsConfig(AppConfig):
- name = 'blogs'
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/migrations/__init__.py b/kevin_camp/django/multiple_apps/apps/blogs/migrations/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/models.py b/kevin_camp/django/multiple_apps/apps/blogs/models.py
deleted file mode 100644
index c827610..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/models.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models
-
-# Create your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/tests.py b/kevin_camp/django/multiple_apps/apps/blogs/tests.py
deleted file mode 100644
index 52f77f9..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/tests.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.test import TestCase
-
-# Create your tests here.
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/urls.py b/kevin_camp/django/multiple_apps/apps/blogs/urls.py
deleted file mode 100644
index f019a0c..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/urls.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from django.conf.urls import url
-from . import views
-
-urlpatterns = [
- url(r'^$', views.index),
- url(r'^new$', views.new),
- url(r'^create$', views.create),
- url(r'^(?P\d+)$', views.show),
- url(r'^(?P\d+)/edit$', views.edit),
- url(r'^(?P\d+)/delete$', views.delete),
-]
diff --git a/kevin_camp/django/multiple_apps/apps/blogs/views.py b/kevin_camp/django/multiple_apps/apps/blogs/views.py
deleted file mode 100644
index 8433f70..0000000
--- a/kevin_camp/django/multiple_apps/apps/blogs/views.py
+++ /dev/null
@@ -1,24 +0,0 @@
-from django.shortcuts import render, HttpResponse, redirect
-
-def index(request):
- comment = "placeholder to later display all the list of blogs"
- return HttpResponse(comment)
-
-def new(request):
- comment = "placeholder to display a new form to create a new blog"
- return HttpResponse(comment)
-
-def create(request):
- return redirect('/blogs')
-
-def show(request, blog_id):
- comment = "placeholder to display blog {}".format(blog_id)
- return HttpResponse(comment)
-
-def edit(request, blog_id):
- comment = "placeholder to edit blog {}".format(blog_id)
- return HttpResponse(comment)
-
-def delete(request, blog_id):
- comment = "placeholder to delete blog {}".format(blog_id)
- return HttpResponse(comment)
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/__init__.py b/kevin_camp/django/multiple_apps/apps/surveys/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/admin.py b/kevin_camp/django/multiple_apps/apps/surveys/admin.py
deleted file mode 100644
index 4255847..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/admin.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.contrib import admin
-
-# Register your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/apps.py b/kevin_camp/django/multiple_apps/apps/surveys/apps.py
deleted file mode 100644
index 2888b70..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/apps.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.apps import AppConfig
-
-
-class SurveysConfig(AppConfig):
- name = 'surveys'
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/migrations/__init__.py b/kevin_camp/django/multiple_apps/apps/surveys/migrations/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/models.py b/kevin_camp/django/multiple_apps/apps/surveys/models.py
deleted file mode 100644
index c827610..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/models.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models
-
-# Create your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/tests.py b/kevin_camp/django/multiple_apps/apps/surveys/tests.py
deleted file mode 100644
index 52f77f9..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/tests.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.test import TestCase
-
-# Create your tests here.
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/urls.py b/kevin_camp/django/multiple_apps/apps/surveys/urls.py
deleted file mode 100644
index f1bf6c4..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/urls.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from django.conf.urls import url
-from . import views
-
-urlpatterns = [
- url(r'^$', views.index),
- url(r'^new$', views.new),
-]
diff --git a/kevin_camp/django/multiple_apps/apps/surveys/views.py b/kevin_camp/django/multiple_apps/apps/surveys/views.py
deleted file mode 100644
index 193d9a7..0000000
--- a/kevin_camp/django/multiple_apps/apps/surveys/views.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from django.shortcuts import render, HttpResponse, redirect
-
-def index(request):
- comment = "placeholder to display all the surveys created"
- return HttpResponse(comment)
-
-def new(request):
- comment = "placeholder for users to add a new survey"
- return HttpResponse(comment)
diff --git a/kevin_camp/django/multiple_apps/apps/users/__init__.py b/kevin_camp/django/multiple_apps/apps/users/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/users/admin.py b/kevin_camp/django/multiple_apps/apps/users/admin.py
deleted file mode 100644
index 4255847..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/admin.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.contrib import admin
-
-# Register your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/users/apps.py b/kevin_camp/django/multiple_apps/apps/users/apps.py
deleted file mode 100644
index 0f0c090..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/apps.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.apps import AppConfig
-
-
-class UsersConfig(AppConfig):
- name = 'users'
diff --git a/kevin_camp/django/multiple_apps/apps/users/migrations/__init__.py b/kevin_camp/django/multiple_apps/apps/users/migrations/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/apps/users/models.py b/kevin_camp/django/multiple_apps/apps/users/models.py
deleted file mode 100644
index c827610..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/models.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models
-
-# Create your models here.
diff --git a/kevin_camp/django/multiple_apps/apps/users/tests.py b/kevin_camp/django/multiple_apps/apps/users/tests.py
deleted file mode 100644
index 52f77f9..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/tests.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.test import TestCase
-
-# Create your tests here.
diff --git a/kevin_camp/django/multiple_apps/apps/users/urls.py b/kevin_camp/django/multiple_apps/apps/users/urls.py
deleted file mode 100644
index 9b43d64..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/urls.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from django.conf.urls import url
-from . import views
-
-urlpatterns = [
- url(r'^$', views.index),
- url(r'^new$', views.new),
- url(r'^register$', views.register),
- url(r'^login$', views.login),
-]
diff --git a/kevin_camp/django/multiple_apps/apps/users/views.py b/kevin_camp/django/multiple_apps/apps/users/views.py
deleted file mode 100644
index bb3c70b..0000000
--- a/kevin_camp/django/multiple_apps/apps/users/views.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from django.shortcuts import render, HttpResponse, redirect
-
-def index(request):
- content = 'placeholder to later display all the list of users'
- return HttpResponse(content)
-
-def register(request):
- content = 'placeholder for users to create a new user record'
- return HttpResponse(content)
-
-def login(request):
- content = 'placeholder for users to login'
- return HttpResponse(content)
-
-def new(request):
- return redirect('/register')
diff --git a/kevin_camp/django/multiple_apps/db.sqlite3 b/kevin_camp/django/multiple_apps/db.sqlite3
deleted file mode 100644
index 7cd6385..0000000
Binary files a/kevin_camp/django/multiple_apps/db.sqlite3 and /dev/null differ
diff --git a/kevin_camp/django/multiple_apps/main/__init__.py b/kevin_camp/django/multiple_apps/main/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/multiple_apps/main/settings.py b/kevin_camp/django/multiple_apps/main/settings.py
deleted file mode 100644
index 9e8c167..0000000
--- a/kevin_camp/django/multiple_apps/main/settings.py
+++ /dev/null
@@ -1,123 +0,0 @@
-"""
-Django settings for main project.
-
-Generated by 'django-admin startproject' using Django 1.11.5.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/topics/settings/
-
-For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.11/ref/settings/
-"""
-
-import os
-
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
-
-# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '@g=reoyit11l5yfumw$qwrrlpwst*h^*+hbk1x9n-$d2gv9l5v'
-
-# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
-
-ALLOWED_HOSTS = []
-
-
-# Application definition
-
-INSTALLED_APPS = [
- 'apps.blogs',
- 'apps.surveys',
- 'apps.users',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
-]
-
-MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
-]
-
-ROOT_URLCONF = 'main.urls'
-
-TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
-]
-
-WSGI_APPLICATION = 'main.wsgi.application'
-
-
-# Database
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
-
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-
-
-# Password validation
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
-
-AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
-]
-
-
-# Internationalization
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
-
-LANGUAGE_CODE = 'en-us'
-
-TIME_ZONE = 'UTC'
-
-USE_I18N = True
-
-USE_L10N = True
-
-USE_TZ = True
-
-
-# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
-
-STATIC_URL = '/static/'
diff --git a/kevin_camp/django/multiple_apps/main/urls.py b/kevin_camp/django/multiple_apps/main/urls.py
deleted file mode 100644
index eebf55d..0000000
--- a/kevin_camp/django/multiple_apps/main/urls.py
+++ /dev/null
@@ -1,26 +0,0 @@
-"""main URL Configuration
-
-The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.11/topics/http/urls/
-Examples:
-Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
-Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
-Including another URLconf
- 1. Import the include() function: from django.conf.urls import url, include
- 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
-"""
-from django.conf.urls import url, include
-
-urlpatterns = [
- url(r'^', include('apps.blogs.urls')),
- url(r'^blogs/', include('apps.blogs.urls')),
- url(r'^surveys/', include('apps.surveys.urls')),
- url(r'^users/', include('apps.users.urls')),
- url(r'^register/', include('apps.users.urls')),
- url(r'^login/', include('apps.users.urls')),
-
-]
diff --git a/kevin_camp/django/multiple_apps/main/wsgi.py b/kevin_camp/django/multiple_apps/main/wsgi.py
deleted file mode 100644
index 064e759..0000000
--- a/kevin_camp/django/multiple_apps/main/wsgi.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""
-WSGI config for main project.
-
-It exposes the WSGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
-"""
-
-import os
-
-from django.core.wsgi import get_wsgi_application
-
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
-
-application = get_wsgi_application()
diff --git a/kevin_camp/django/multiple_apps/manage.py b/kevin_camp/django/multiple_apps/manage.py
deleted file mode 100644
index 1a1848d..0000000
--- a/kevin_camp/django/multiple_apps/manage.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-
-if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
- try:
- from django.core.management import execute_from_command_line
- except ImportError:
- # The above import may fail for some other reason. Ensure that the
- # issue is really that Django is missing to avoid masking other
- # exceptions on Python 2.
- try:
- import django
- except ImportError:
- raise ImportError(
- "Couldn't import Django. Are you sure it's installed and "
- "available on your PYTHONPATH environment variable? Did you "
- "forget to activate a virtual environment?"
- )
- raise
- execute_from_command_line(sys.argv)
diff --git a/kevin_camp/django/time_display/apps/__init__.py b/kevin_camp/django/time_display/apps/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/time_display/apps/time_display/__init__.py b/kevin_camp/django/time_display/apps/time_display/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/time_display/apps/time_display/admin.py b/kevin_camp/django/time_display/apps/time_display/admin.py
deleted file mode 100644
index 4255847..0000000
--- a/kevin_camp/django/time_display/apps/time_display/admin.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.contrib import admin
-
-# Register your models here.
diff --git a/kevin_camp/django/time_display/apps/time_display/apps.py b/kevin_camp/django/time_display/apps/time_display/apps.py
deleted file mode 100644
index 80ef106..0000000
--- a/kevin_camp/django/time_display/apps/time_display/apps.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.apps import AppConfig
-
-
-class TimeDisplayConfig(AppConfig):
- name = 'time_display'
diff --git a/kevin_camp/django/time_display/apps/time_display/migrations/__init__.py b/kevin_camp/django/time_display/apps/time_display/migrations/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/time_display/apps/time_display/models.py b/kevin_camp/django/time_display/apps/time_display/models.py
deleted file mode 100644
index c827610..0000000
--- a/kevin_camp/django/time_display/apps/time_display/models.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models
-
-# Create your models here.
diff --git a/kevin_camp/django/time_display/apps/time_display/static/css/style.css b/kevin_camp/django/time_display/apps/time_display/static/css/style.css
deleted file mode 100644
index b6747b8..0000000
--- a/kevin_camp/django/time_display/apps/time_display/static/css/style.css
+++ /dev/null
@@ -1,8 +0,0 @@
-html{
- text-align: center;
-}
-tr{
- border: 2pt solid black;
- border-radius: 10px;
- display: inline-block;
-}
diff --git a/kevin_camp/django/time_display/apps/time_display/templates/time_display/index.html b/kevin_camp/django/time_display/apps/time_display/templates/time_display/index.html
deleted file mode 100644
index ca03f2a..0000000
--- a/kevin_camp/django/time_display/apps/time_display/templates/time_display/index.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
- {% load static %}
-
-
- Time Display
-
-
-
-
-
-
Time Display
-
-
-
-
-
{{ time_date }}
-
-
-
-
-
diff --git a/kevin_camp/django/time_display/apps/time_display/tests.py b/kevin_camp/django/time_display/apps/time_display/tests.py
deleted file mode 100644
index 52f77f9..0000000
--- a/kevin_camp/django/time_display/apps/time_display/tests.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.test import TestCase
-
-# Create your tests here.
diff --git a/kevin_camp/django/time_display/apps/time_display/urls.py b/kevin_camp/django/time_display/apps/time_display/urls.py
deleted file mode 100644
index fb68ed6..0000000
--- a/kevin_camp/django/time_display/apps/time_display/urls.py
+++ /dev/null
@@ -1,6 +0,0 @@
-from django.conf.urls import url
-from . import views
-
-urlpatterns = [
- url(r'^$', views.index),
-]
diff --git a/kevin_camp/django/time_display/apps/time_display/views.py b/kevin_camp/django/time_display/apps/time_display/views.py
deleted file mode 100644
index 523dcb0..0000000
--- a/kevin_camp/django/time_display/apps/time_display/views.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from django.shortcuts import render, redirect
-from datetime import datetime
-from time import gmtime, strftime
-
-def index(request):
- context = {
- "time_date": datetime.now().strftime("%I:%M %p %m-%d-%Y")
- }
- return render(request, 'time_display/index.html', context)
diff --git a/kevin_camp/django/time_display/db.sqlite3 b/kevin_camp/django/time_display/db.sqlite3
deleted file mode 100644
index 2d306f1..0000000
Binary files a/kevin_camp/django/time_display/db.sqlite3 and /dev/null differ
diff --git a/kevin_camp/django/time_display/main/__init__.py b/kevin_camp/django/time_display/main/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/kevin_camp/django/time_display/main/settings.py b/kevin_camp/django/time_display/main/settings.py
deleted file mode 100644
index 7be337f..0000000
--- a/kevin_camp/django/time_display/main/settings.py
+++ /dev/null
@@ -1,121 +0,0 @@
-"""
-Django settings for main project.
-
-Generated by 'django-admin startproject' using Django 1.11.5.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/topics/settings/
-
-For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.11/ref/settings/
-"""
-
-import os
-
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
-
-# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '@-*vrol@zs2!(krc3z#gktbk@bzkl(gz90tn5yy3mekvr94bm6'
-
-# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
-
-ALLOWED_HOSTS = []
-
-
-# Application definition
-
-INSTALLED_APPS = [
- 'apps.time_display',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
-]
-
-MIDDLEWARE = [
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
-]
-
-ROOT_URLCONF = 'main.urls'
-
-TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- ],
- },
- },
-]
-
-WSGI_APPLICATION = 'main.wsgi.application'
-
-
-# Database
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
-
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-
-
-# Password validation
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
-
-AUTH_PASSWORD_VALIDATORS = [
- {
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
- },
- {
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
- },
-]
-
-
-# Internationalization
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
-
-LANGUAGE_CODE = 'en-us'
-
-TIME_ZONE = 'America/Chicago'
-
-USE_I18N = True
-
-USE_L10N = True
-
-USE_TZ = True
-
-
-# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
-
-STATIC_URL = '/static/'
diff --git a/kevin_camp/django/time_display/main/wsgi.py b/kevin_camp/django/time_display/main/wsgi.py
deleted file mode 100644
index 064e759..0000000
--- a/kevin_camp/django/time_display/main/wsgi.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""
-WSGI config for main project.
-
-It exposes the WSGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
-"""
-
-import os
-
-from django.core.wsgi import get_wsgi_application
-
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
-
-application = get_wsgi_application()
diff --git a/kevin_camp/django/time_display/manage.py b/kevin_camp/django/time_display/manage.py
deleted file mode 100644
index 1a1848d..0000000
--- a/kevin_camp/django/time_display/manage.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-
-if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
- try:
- from django.core.management import execute_from_command_line
- except ImportError:
- # The above import may fail for some other reason. Ensure that the
- # issue is really that Django is missing to avoid masking other
- # exceptions on Python 2.
- try:
- import django
- except ImportError:
- raise ImportError(
- "Couldn't import Django. Are you sure it's installed and "
- "available on your PYTHONPATH environment variable? Did you "
- "forget to activate a virtual environment?"
- )
- raise
- execute_from_command_line(sys.argv)
diff --git a/kevin_camp/erd/books.mwb b/kevin_camp/erd/books.mwb
deleted file mode 100644
index be6c6df..0000000
Binary files a/kevin_camp/erd/books.mwb and /dev/null differ
diff --git a/kevin_camp/flask/full_friends/friends.sql b/kevin_camp/flask/full_friends/friends.sql
deleted file mode 100644
index 5e7d15b..0000000
--- a/kevin_camp/flask/full_friends/friends.sql
+++ /dev/null
@@ -1,54 +0,0 @@
--- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
---
--- Host: 127.0.0.1 Database: full_friends
--- ------------------------------------------------------
--- Server version 5.7.19
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `friends`
---
-
-DROP TABLE IF EXISTS `friends`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `friends` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) DEFAULT NULL,
- `age` int(11) DEFAULT NULL,
- `started_at` datetime DEFAULT NULL,
- `updated_at` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `friends`
---
-
-LOCK TABLES `friends` WRITE;
-/*!40000 ALTER TABLE `friends` DISABLE KEYS */;
-INSERT INTO `friends` VALUES (1,'Tom Selleck',74,'2017-09-14 14:14:10','2017-09-14 14:14:10');
-/*!40000 ALTER TABLE `friends` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2017-09-14 14:25:39
diff --git a/kevin_camp/flask/full_friends/mysqlconnection.py b/kevin_camp/flask/full_friends/mysqlconnection.py
deleted file mode 100644
index d162bb7..0000000
--- a/kevin_camp/flask/full_friends/mysqlconnection.py
+++ /dev/null
@@ -1,40 +0,0 @@
-""" import the necessary modules """
-from flask_sqlalchemy import SQLAlchemy
-from sqlalchemy.sql import text
-# Create a class that will give us an object that we can use to connect to a database
-class MySQLConnection(object):
- def __init__(self, app, db):
- config = {
- 'host': 'localhost',
- 'database': db, # we got db as an argument
- 'user': 'root',
- 'password': 'root',
- 'port': '3306' # change the port to match the port your SQL server is running on
- }
- # this will use the above values to generate the path to connect to your sql database
- DATABASE_URI = "mysql://{}:{}@127.0.0.1:{}/{}".format(config['user'], config['password'], config['port'], config['database'])
- app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI
- app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
- # establish the connection to database
- self.db = SQLAlchemy(app)
- # this is the method we will use to query the database
- def query_db(self, query, data=None):
- result = self.db.session.execute(text(query), data)
- if query[0:6].lower() == 'select':
- # if the query was a select
- # convert the result to a list of dictionaries
- list_result = [dict(r) for r in result]
- # return the results as a list of dictionaries
- return list_result
- elif query[0:6].lower() == 'insert':
- # if the query was an insert, return the id of the
- # commit changes
- self.db.session.commit()
- # row that was inserted
- return result.lastrowid
- else:
- # if the query was an update or delete, return nothing and commit changes
- self.db.session.commit()
-# This is the module method to be called by the user in server.py. Make sure to provide the db name!
-def MySQLConnector(app, db):
- return MySQLConnection(app, db)
diff --git a/kevin_camp/flask/full_friends/server.py b/kevin_camp/flask/full_friends/server.py
deleted file mode 100644
index 707f50a..0000000
--- a/kevin_camp/flask/full_friends/server.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from flask import Flask, render_template, redirect, request, session, flash
-from mysqlconnection import MySQLConnector
-app = Flask(__name__)
-mysql = MySQLConnector(app,'full_friends')
-
-@app.route('/')
-def index():
- query = "SELECT * FROM friends"
- friends = mysql.query_db(query)
- return render_template('index.html', all_friends = friends)
-
-@app.route('/friends', methods=['POST'])
-def create():
- query = "INSERT INTO friends (name, age, created_at, updated_at) VALUES (:name, :age, now(), now())"
- data = {
- 'name': request.form['name'],
- 'age': request.form['age'],
- }
- mysql.query_db(query,data)
- return redirect('/')
-
-app.run(debug=True)
diff --git a/kevin_camp/flask/full_friends/static/style.css b/kevin_camp/flask/full_friends/static/style.css
deleted file mode 100644
index fbac327..0000000
--- a/kevin_camp/flask/full_friends/static/style.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.container{
- width:95%;
- margin: auto;
-}
-table, th, tr, td{
- margin: 5px;
- padding: 5px;
- border: 1pt solid black;
-}
diff --git a/kevin_camp/flask/full_friends/templates/index.html b/kevin_camp/flask/full_friends/templates/index.html
deleted file mode 100644
index d40c7be..0000000
--- a/kevin_camp/flask/full_friends/templates/index.html
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
- Friends
-
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.