Skip to content

Instantly share code, notes, and snippets.

View marcusmotill's full-sized avatar
👋

Marcus Motill marcusmotill

👋
View GitHub Profile
--- a/forecast_api/storage/postgres_connection.py
+++ b/forecast_api/storage/postgres_connection.py
@@ -1,7 +1,7 @@
import contextlib
import logging
-import psycopg2
+import pg8000.dbapi
logger = logging.getLogger(__name__)
@marcusmotill
marcusmotill / sortem.js
Created November 17, 2022 19:09
sort two arrays
// input is two ascending sorted arrays
// output is the product of the two arrays sorted ascending
// inputs
const input1 = [1, 2, 3, 4, 99];
const input2 = [8, 10, 99, 101, 102];
// define variables needed in loop
let output = [];
let pointer1 = 0;
@marcusmotill
marcusmotill / init_output.md
Last active February 23, 2023 14:33
init output pipeline noti data