Skip to content

Instantly share code, notes, and snippets.

View YahiaBakour's full-sized avatar

Yahia Bakour YahiaBakour

View GitHub Profile
@YahiaBakour
YahiaBakour / web-servers.md
Created January 20, 2020 17:05 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@YahiaBakour
YahiaBakour / shell.c
Last active January 20, 2020 17:03
Fully functional & easy to understand shell implementation in C with Piping | / Redirection < , > / Background & / Arguments -
/*
Author: Yahia Bakour
License: MIT License
*/
#include <unistd.h>
#include<stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@YahiaBakour
YahiaBakour / SkipList.h
Created May 24, 2018 18:28
SkipList Implementation, C++
// By your BOI : Yahia B
// feel free to take whatever you would like
#ifndef SkipList_H
#define SkipList_H
#include <iostream>
#include <cstdlib>
#include <limits>
#include <random>
#include <ctime>
#include <vector>
@YahiaBakour
YahiaBakour / DLL.h
Created May 17, 2018 20:45
Double Linked List : C++ Implementation
// By your BOI : Yahia B
// feel free to take whatever you would like
#ifndef DLL_H
#define DLL_H
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
@YahiaBakour
YahiaBakour / BST.cpp
Created May 15, 2018 06:24
Binary Search Tree C++ Implementation
/*BST CLASS AND FUNCTIONS BY YOUR BOI: YAHIA B.
All of this code is open_Source so feel free to take whatever you'd like.
Note: disp() and display(Node* P, int indent) logic and code are NOT mine.
*/
#include "Bst.h"
#include <iomanip>
int numberofnodes;