Skip to content

Instantly share code, notes, and snippets.

#include "raylib.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
typedef struct {
int socket;
unsigned char ID;
#include "AVLtree.h"
#include <iostream>
void AVLTree::set_height(Node* node){
if(!node){
node->height = 0;
return;
}
if(!node->left || !node->right){
if(node->left){
@Goodguyr
Goodguyr / quicksort.py
Created November 12, 2020 14:07
Incorrect code from the quiz
def quickSort(arr):
l = 0
r = len(arr) - 1
if l < r:
i = l
j = r + 1
v = arr[l]
while i < j:
i += 1
while i < r and arr[i] < v:
@Goodguyr
Goodguyr / memusg
Created November 2, 2020 15:22 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #