Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
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 { describe, it, expect } from "bun:test"; | |
| import { resolveFieldMasks } from "./fieldMask"; | |
| const data = { | |
| level1: { | |
| name: "Dowen", | |
| age: 30, | |
| hobbies: ["programming", "reading"], | |
| address: { | |
| street: "123 Main Street", |
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
| export async function wait(seconds: number){ | |
| return new Promise<null>((resolve) => { | |
| setTimeout(() => resolve(null), seconds * 1000); | |
| }); | |
| } | |
| // await wait(5) - waits 5 seconds before continuing to next statement | |
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
| // REQUIRES SIGNALING MECHANISM | |
| // Examples: Session Initiation Protocol over Websockets, XMPP/Jabber Message, Socket.io | |
| //We'll be using socket.io as our signalling method | |
| //BROWSER A | |
| ... | |
| const constraints = {video: true, audio: true} | |
| const peerConnection = new RTCPeerConnection() |
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
| function sayHello(){ | |
| alert("Hello world!"); | |
| } |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
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 PyPDF2 import PdfFileMerger, PdfFileReader, PdfFileWriter | |
| from PyPDF2.pdf import PageObject | |
| import os | |
| def mergePDFDocument(pdf_stream, toAppend="0"): | |
| """This function merges the pages of a pdf document into a single page. | |
| pdf_stream :: path to pdf document | |
| toAppend :: int to append to end of merged file's name |