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
| # Q1 | |
| connection = psycopg2.connect(ConnectionParameters) | |
| conn = psycopg2.connect("dbname=mydb") | |
| conn = psycopg2.connect(database="mydb") | |
| conn = psycopg2.connect("user=jas password=abc123 dbname=mymydb") | |
| conn = psycopg2.connect("host=db.server.org port=5432 dbname=mymydb") | |
| cursor = connection.cursor() | |
| cursor.execute("SQL Query") |
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
| List curr = L; | |
| List prev = NULL; | |
| List next = NULL; | |
| while (curr) { | |
| next = cur->nerxt; | |
| curr->next = prev; | |
| prev = curr; | |
| curr = next; | |
| } | |
| return prev; |
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
| <style> | |
| .yooo{ | |
| height: 200px; | |
| max-width: 300px; | |
| min-width: 90px; | |
| border: 5px dotted black; | |
| overflow: hidden; | |
| padding: 20px; | |
| margin: 20px 20px 40px 50px; | |
| background-color: darkseagreen; |
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
| Vue.js 3 hrs 33 mins βββββββββββββββββββββ 48.5% | |
| SQL 1 hr 53 mins βββββββββββββββββββββ 25.8% | |
| JavaScript 1 hr 30 mins βββββββββββββββββββββ 20.6% | |
| C# 18 mins βββββββββββββββββββββ 4.1% | |
| JSON 4 mins βββββββββββββββββββββ 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
| # # hello.s ... print "Hello, MIPS" | |
| # .data # the data segment | |
| # msg: .asciiz "Hello, MIPS\n" | |
| # .text # the code segment | |
| # main: | |
| # la $a0, msg # load the argument string | |
| # li $v0, 4 # load the system call (print) |
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
| int a = 10;// decimal 10 | |
| int b = 0b10;// binary 10 | |
| int c = 010; // oct 10 | |
| int d = 0x10;// hex 10 | |
| int e = 9; | |
| printf("%d\n", a & d); | |
| /* | |
| 0xFF |
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
| typedef struct stack { | |
| int *list; | |
| int length; | |
| int currItem; | |
| }*Stack; | |
| void init(Stack new) { | |
| new = malloc(sizeof(new)); | |
| new->list = malloc(sizeof(int * 100)); | |
| new->length = 100; |
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 pandas import DataFrame | |
| from pandas import Series | |
| from pandas import concat | |
| from pandas import read_csv | |
| from pandas import datetime | |
| from sklearn.metrics import mean_squared_error | |
| from sklearn.preprocessing import MinMaxScaler | |
| from keras.models import Sequential | |
| from keras.layers import Dense | |
| from keras.layers import LSTM |
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
| -- COMP3311 19T3 Assignment 2 | |
| -- | |
| -- check.sql ... checking functions | |
| -- | |
| -- Written by: John Shepherd, September 2012 | |
| -- Updated by: Hayden Smith, October 2019 | |
| -- | |
| -- | |
| -- Helper functions |