Original One page GDD in Notion by Marnix
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 pygame | |
from pyardrone import ARDrone | |
def main(): | |
pygame.init() | |
W, H = 320, 240 | |
screen = pygame.display.set_mode((W, H)) | |
drone = ARDrone() |
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
from flask import Flask | |
import socketio | |
import eventlet | |
from keras.models import load_model | |
import tensorflow as tf | |
import base64 | |
from io import BytesIO | |
from PIL import Image | |
import numpy as np | |
import cv2 |
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
from math import inf | |
from bisect import bisect_left as bLeft, bisect_right as bRight | |
from collections import defaultdict | |
def getHealth(seq, first, last, largest): | |
h, ls = 0, len(seq) | |
for f in range(ls): | |
for j in range(1, largest+1): | |
if f+j > ls: |
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 h5py | |
import os | |
import requests | |
import numpy as np | |
DOWNLOADS_DIR = <folder> | |
username=<user> | |
password=<Password> | |
country = <filename> | |
i= 0 |
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
// A C++ program to swap Kth node from beginning with kth node from end | |
#include <bits/stdc++.h> | |
using namespace std; | |
// A Linked List node | |
struct Node | |
{ | |
int data; | |
struct Node *next; | |
}; |
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
/* C++ program to print level order traversal using STL */ | |
#include <bits/stdc++.h> | |
using namespace std; | |
// A Binary Tree Node | |
struct Node | |
{ | |
int data; | |
struct Node *left, *right; | |
}; |
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
// Given an array of numbers, program to arrange the numbers to form the | |
// largest number | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
// A comparison function which is used by sort() in printLargest() | |
int myCompare(string X, string Y) |
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
// C++ program to find | |
// celebrity in O(n) time | |
// and O(1) extra space | |
#include <bits/stdc++.h> | |
using namespace std; | |
// Max # of persons in the party | |
#define N 8 | |
// Person with 2 is celebrity |
NewerOlder