Git Product home page Git Product logo

42docs's Introduction

Hi there ๐Ÿ‘‹

I am currently working in Fintech.

  • โš™๏ธ I use daily: .c, .cpp, .py, .sh
  • ๐ŸŒ I'm mostly active within the C++
  • ๐ŸŒฑ Learning all about Financial markets
  • ๐Ÿ’ฌ Ping me about Boost, Low latency software and financial markets
  • โšก๏ธ Hobbies: Gaming, programming, random events & walks.

Contact me:

Harm Smits | LinkedIn Harm Smits | Keybase

42docs's People

Contributors

0xpacman avatar abeaugustijn avatar aymanemadidi avatar brhaka avatar chikhidev avatar dependabot[bot] avatar gbudau avatar glacecoding avatar harm-smits avatar i99dev avatar j4k0m avatar leeoocca avatar lorenuars19 avatar preposterone avatar victortennekes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

42docs's Issues

MiniLibX documentation - Getting a screen on WSL

Hello,

Thank you very much for your documentation regarding MLX. It has been very useful to me, and I'm sure to plenty others.
There's an error in section Getting Started > Getting a screen on WSL(2).
Upon opening XLaunch, user should choose "Start no client" option, rather than "Start a program" as stated in the documentation.

Thank you again!

MLX documentation writing style suggestions

Personally I found the MLX docs a little hard to read and would advice rewriting the explanation (not the inherent content)

Currently its set up as a tutorial series which is fine but isn't really in my opininion how documentation should work. A student should be free to try things for themselves with the docs providing the information on how to use those functions.

I'd take an example out of the react docs and compare how their more formal approach can bring a legible explanation to the features. https://reactjs.org/docs/introducing-jsx.html

(React Router)[https://reactrouterdotcom.fly.dev/] also has a nice way of splitting the docs in half by letting you choose between a tutorial and the complete docs

If this is something you are open for I would love to help and we can bounce ideas back and forth.

After having read docs for close to 5 years I have a sense of what works and what doesn't after also having to write docs for internships and new developers at companies.

Hope to hear from you.

slack: rnijhuis

Window not showing with sleep()

In "Getting started", second snippet: the window doesn't pop up while using sleep(). Works with mlx_loop(), but some workarounds have to be done to close the window without stopping it in the terminal manually.

#include <mlx.h>
#include <stdlib.h>

int 	exit2()
{
	exit(0);
}

int     main(void)
{
	void    *mlx;
	void    *mlx_win;

	mlx = mlx_init();
	mlx_win = mlx_new_window(mlx, 1920, 1080, "Hello world!");
	mlx_hook(mlx_win, 17, 0, exit2, mlx);
	mlx_loop(mlx);
}

get_t, get_r and get_g return a wrong value

#include <stdio.h>

int	create_trgb(int t, int r, int g, int b)
{
	return (t << 24 | r << 16 | g << 8 | b);
}

int	get_t(int trgb)
{
	return (trgb & (0xFF << 24));
}

int	get_r(int trgb)
{
	return (trgb & (0xFF << 16));
}

int	get_g(int trgb)
{
	return (trgb & (0xFF << 8));
}

int	get_b(int trgb)
{
	return (trgb & 0xFF);
}

int main()
{
	int trgb = create_trgb(248, 12, 100, 200);
	printf("%d\n", trgb);
	printf("%d\n", get_t(trgb));
	printf("%d\n", get_r(trgb));
	printf("%d\n", get_g(trgb));
	printf("%d\n", get_b(trgb));

    return 0;
}

output:

-133405496
-134217728
786432
25600
200

Should be:

int	get_t(int trgb)
{
	return ((trgb >> 24) & 0xFF);
}

int	get_r(int trgb)
{
	return ((trgb >> 16) & 0xFF);
}

int	get_g(int trgb)
{
	return ((trgb >> 8) & 0xFF);
}

int main()
{
	int trgb = create_trgb(248, 12, 100, 200);

output:

-133405496
248
12
100
200

Libs -> Getting Started.

  1. When installing on ubuntu 18.04 WSL2, resolvconf does not seem to be installed yet. This causes issues with:
    export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0

since the file /etc/resolv.conf doesn't exist. Dependency installation in previous subchapter Compilation on Linux can be changed too
sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev resolvconf

  1. When using Xming and opening Xlaunch, the default configuration will put "xterm" as default Start program option. Keeping this there and then finishing will result in an error and Xserver quiting. To solve this, keep this option empty as shown in the screenshot:
    image

Get next line documentation incorrect after subject update

Currently the docs for get next line are incorrect in a couple ways because the subject has changed since initial writing of the docs.

The prototype is incorrect as it now only requires a file descriptor and the return value has updated:
int get_next_line(int fd, char **line); -> char *get_next_line(int fd);

The return value needs to be updated to say it should return a char pointer with the newline included if there is a newline the line. If there isn't any data to be read anymore it should return a NULL value.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.