generated from github/welcome-to-github-and-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gaetan FAURE-LEVOUX
committed
Sep 16, 2019
1 parent
2efce6b
commit e361d7c
Showing
16 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_ft.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 16:42:20 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/02 17:46:23 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_ft(int *nbr) | ||
{ | ||
*nbr = 42; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_ultimate_ft.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 17:01:43 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/03 04:23:33 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_ultimate_ft(int *********nbr) | ||
{ | ||
*********nbr = 42; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_swap.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 17:51:55 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/02 21:34:46 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_swap(int *a, int *b) | ||
{ | ||
int tmp; | ||
|
||
tmp = *a; | ||
*a = *b; | ||
*b = tmp; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_div_mod.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 18:36:04 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/02 21:35:55 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_div_mod(int a, int b, int *div, int *mod) | ||
{ | ||
*div = a / b; | ||
*mod = a % b; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_ultimate_div_mod.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 21:10:58 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/03 10:13:52 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_ultimate_div_mod(int *a, int *b) | ||
{ | ||
int tmp; | ||
|
||
tmp = *a / *b; | ||
*b = *a % *b; | ||
*a = tmp; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_putstr.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/03 10:17:36 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/03 12:02:23 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include <unistd.h> | ||
|
||
void ft_putstr(char *str) | ||
{ | ||
int n; | ||
|
||
n = 0; | ||
while (str[n] != '\0') | ||
{ | ||
write(1, &str[n], 1); | ||
n++; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_strlen.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/03 16:13:46 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/03 16:14:11 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
int ft_strlen(char *str) | ||
{ | ||
int n; | ||
|
||
n = 0; | ||
while (str[n] != '\0') | ||
{ | ||
n++; | ||
} | ||
return (n); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_rev_int_tab.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: gfaure-l <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/09/02 22:01:30 by gfaure-l #+# #+# */ | ||
/* Updated: 2019/09/03 16:30:43 by gfaure-l ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
void ft_rev_int_tab(int *tab, int size) | ||
{ | ||
int n; | ||
|
||
n = 0; | ||
while (size > n) | ||
{ | ||
size--; | ||
tab[size] = tab[n]; | ||
n++; | ||
} | ||
} |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
groups $FT_USER | tr ' ' ',' | tr -d "\n" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
find . -name "*.sh" | rev | cut -c 4- | cut -d '/' -f1 | rev | ||
# | cut -c -3 | rev | cut -d '/' -f2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
find . -type f -o -type d | wc -l | tr -d " " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ifconfig | grep ether | cut -c 8- | cut -c -17 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
42 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ls -l | sed "n;d" |