This file contains hidden or 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
| function sum(...args){ | |
| var result = 0; | |
| if(args.length == 4){ | |
| for(let i = 0; i < args.length; i++) | |
| result += args[i]; | |
| return result; | |
| } else { | |
| return function(...newArgs){ |
This file contains hidden or 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
| /******************** | |
| * Exemplo maluco por Luiz Felipe. | |
| * | |
| * https://github.com/Silva97 | |
| ********************/ | |
| #include <stdio.h> | |
| #define UCHARPTR (unsigned char *) |
This file contains hidden or 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
| /******************** | |
| * Exemplo de replace em C. | |
| * Por Luiz Felipe. | |
| * https://github.com/Silva97 | |
| ********************/ | |
| #include <stdio.h> | |
| #include <string.h> | |
| int replace(char *text, char *word, char *new); |
This file contains hidden or 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
| /******************** | |
| * Developed by Luiz Felipe. | |
| * | |
| * GitHub: https://github.com/Silva97 | |
| * Facebook: https://www.facebook.com/B4.0E.B0.48.CD.10.B0.69.CD.10.C3 | |
| ********************/ | |
| #include <stdio.h> | |
| #include <stdarg.h> | |
| #include <limits.h> |
This file contains hidden or 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
| #include <stdio.h> | |
| #define MAX_STACK 64 | |
| typedef struct stack { | |
| int value[MAX_STACK]; | |
| int size; | |
| } Stack; | |
| void push(Stack *s, int value); |
This file contains hidden or 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
| /******************** | |
| * Desenvolvido por Luiz Felipe | |
| * https://github.com/Silva97 | |
| * | |
| * Algoritmo feito em resolução de um desafio | |
| * cujo o objetivo era apresentar o menor número | |
| * de persistência indicada pelo usuário. | |
| * | |
| * Desafio no grupo Programação em C: | |
| * - https://www.facebook.com/groups/414761988665865/permalink/1144414109033979/ |
This file contains hidden or 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
| /******************** | |
| * Exemplo por Luiz Felipe | |
| * https://github.com/Silva97 | |
| ********************/ | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #define FNAME "exemplo.dat" |
This file contains hidden or 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
| /******************** | |
| * Exemplo por Luiz Felipe. | |
| * https://github.com/Silva97 | |
| ********************/ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <unistd.h> // Para usar chdir() | |
| #include <dirent.h> |
This file contains hidden or 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
| /******************** | |
| * Exemplo básico de uso de sockets no Linux. | |
| * Por Luiz Felipe - https://github.com/Silva97 | |
| * | |
| * Link do vídeo: https://youtu.be/GaxjJvMnz-I | |
| ********************/ | |
| #include <stdio.h> | |
| #include <winsock2.h> |
This file contains hidden or 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
| /******************** | |
| * Exemplo básico de uso de sockets no Linux. | |
| * Por Luiz Felipe - https://github.com/Silva97 | |
| * | |
| * Link do vídeo: https://youtu.be/GaxjJvMnz-I | |
| ********************/ | |
| #include <stdio.h> | |
| #include <unistd.h> |