This file contains hidden or 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
DROP VIEW IF EXISTS Professor_Teaches_Section; | |
CREATE VIEW Professor_Teaches_Section AS SELECT * FROM ( | |
SELECT first_name, last_name, phone_number, research_interests, email, prof_alias_id, prof_email_alias, id_sections, section_name, instructor, alias, title, phone, office, `type`, days, `start`, `end`, location, department | |
FROM ( | |
SELECT * FROM Professors | |
JOIN (SELECT id AS prof_alias_id, substring_index(email, "@", 1) AS prof_email_alias FROM Professors) AS ProfAlias | |
ON Professors.id = ProfAlias.prof_alias_id | |
) AS ProfWithAlias | |
JOIN Sections | |
ON Sections.alias = ProfWithAlias.prof_email_alias |
This file contains hidden or 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
""" | |
Source: https://gist.github.com/mfekadu/ceaa65dd158bd45dcfadbbda17b83b03 | |
""" | |
from invoke import task | |
import os | |
import webbrowser | |
try: | |
from StringIO import StringIO ## for Python 2 | |
except ImportError: |
This file contains hidden or 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 invoke import task | |
import os | |
import webbrowser | |
try: | |
from StringIO import StringIO ## for Python 2 | |
except ImportError: | |
from io import StringIO ## for Python 3 | |
This file contains hidden or 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
# http://bytefish.de/blog/first_steps_with_sqlalchemy/ | |
# https://docs.sqlalchemy.org/en/13/ | |
# https://www.sqlalchemy.org/library.html | |
# ^ if 1.3 is not current release | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import create_engine | |
from datetime import datetime, timedelta | |
from sqlalchemy import Table, Column, Integer, String, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship, backref |
This file contains hidden or 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
<html> | |
<head> | |
<title>Snake</title> | |
<!-- the follwing line of code optimizes for mobile screens --> | |
<meta name="viewport" content="width=device-width, user-scalable=no"> | |
<style> | |
button { | |
background-color: #4CAF50; /* Green */ | |
border: none; |
This file contains hidden or 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 numpy as np | |
# define the neural network architecture | |
# Input Data | |
a_0 = [1, 2] | |
inputs = a_0 | |
#Layer 1 | |
weights_1 = [[-2.0, 1.5], | |
[ 1.5, -1.0], |
This file contains hidden or 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
.DS_Store |