Skip to content

Squidtyper/42Codam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42Codam

A selection of a few school projects

Content

libft:
Language C
Rewrite some stdlib string and unistd functions with some extra handy functions to be used later in other projects.

printf:
Language C
Rewrite a simplified version of printf function from stdio library.

get_next_line:
Language C
Reads text from a file descriptor and returns a single line each time.

philosophers:
Language C
Assignment: multiple philosophers sitting at a round table. Each has to share a fork with both his/her left neighbour as well as his/her right neighbour. Each needs two forks to eat spaghetti. The life cycle is as follows: eat, think and sleep, with eating and sleeping requiring specific amount of time.
Run the program by make, then ./philosophers time_to_die time_to_eat time_to_sleep number_of_times_each_philosopher_must_eat
The last argument "number_of_times_each_philosopher_must_eat" is optional.
This assignment addresses threading and data race problem which occurs when the same data is accessed by (read: being read and written at the same time) more than one thread.

Cub3D:
Language C
Making a 3D environment using MLX42 library and raycasting priciples. In collaboration with greedymelon(github name).
This project is saved in a separate repository: https://github.com/Squidtyper/Cub3D.git

Webserv:
Language C++
Making a server from scratch which handles HTTP requests on MacOS systems using kque. In collaboration with zangetsu89and tatamize (github names).
This project is saved in a separate repository: https://github.com/Zangetsu89/webserve.git

CPP:
Language C++
A series of exercises addressing each time a specific topic.
Each exercise contains a subject document in pdf.

Inception:
Docker and Docker Compose
Test a WordPress website on a VM machine. First change the host IP to lizhang.42.fr. Docker compose creates 3 containers, NGINX, WordPress and MariaDB 2 volumes WordPress and MariaDB. NGINX manages all requests from the clients, WordPress runs PHP-FPM and MariaDB saves all user data. For this project, pulling from official images are prohibited, therefore Debian12.12 is used.

About

A selection of a few school projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published