This file contains 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 requests | |
from config import Config | |
WORDPRESS_URL = 'https://public-api.wordpress.com/' | |
AUTH_TOKEN_URL = f'{WORDPRESS_URL}oauth2/token' | |
POSTS_URL = f'{WORDPRESS_URL}rest/v1.1/sites/{Config.SITE_ID}/posts/{Config.POST_ID}' |
This file contains 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 TABLE IF EXISTS SQLShackGeomTest; | |
CREATE TABLE SQLShackGeomTest ( | |
sensor_id VARCHAR(50) PRIMARY KEY NOT NULL, | |
longitude VARCHAR(50), | |
latitude VARCHAR(50), | |
country TEXT, | |
sensorTemp INTEGER, | |
sensorPressure INTEGER, | |
sensorTime TIMESTAMP, |
This file contains 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
EXEC master.dbo.sp_addlinkedserver | |
@server =N'AWS_ATHENA', | |
@srvproduct=N'', | |
@provider=N'MSDASQL', | |
@datasrc=N'AWS_ATHENA' | |
GO | |
EXEC master.dbo.sp_addlinkedsrvlogin | |
@rmtsrvname=N'AWS_ATHENA', | |
@useself=N'False', |
This file contains 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
CREATE TABLE Students( | |
student_number INT AUTO_INCREMENT PRIMARY KEY, | |
student_name VARCHAR(100), | |
dept_name VARCHAR(100), | |
subject VARCHAR(100), | |
marks INT | |
); | |
INSERT INTO Students (student_name,dept_name,subject,marks) VALUES | |
('Tom','CS','Programming',90), |