Skip to content

Instantly share code, notes, and snippets.

View anthonykrivonos's full-sized avatar
😷
в карантине

Anthony Krivonos anthonykrivonos

😷
в карантине
View GitHub Profile
# Reference: https://stackoverflow.com/a/61789978/7432026
import pymysql
db = pymysql.connect(host="ak4483-db.cfut7pwibnyz.us-east-1.rds.amazonaws.com", user="admin", passwd="adm1nadm2n", database="question_9")
cursor = db.cursor()
for i, row in people.iterrows():
person = **row
uni, firstName, lastName, email, role = person['uni'], person['first_name'], person['last_name'], person['email'], person['role']
cursor.execute('INSERT INTO people (uni, firstName, lastName, email) VALUES(%s, %s, %s, %s)', uni, firstName, lastName, email)
group: DB Final Q2 Test Data
description: DB Final Q2 Test Data
branch = {
branch_name, branch_city, assets
'Uptown', 'new york', 100
'Beach', 'miami', 200
'Dumpster', 'los angeles', 10
}
@anthonykrivonos
anthonykrivonos / euler-scheme.js
Last active September 25, 2018 18:46
Euler Approximation Scheme
/*
* Euler Approximation Scheme Script
* Anthony Krivonos
* Prof. Kei Kobayashi
* 9/25/2018
*/
/*
* Sample Function
* - Takes in (t, y) and returns a number.