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> | |
#include <stdlib.h> | |
#include <math.h> | |
#define _USE_MATH_DEFINES | |
struct vector { | |
double x, z, y; | |
}; |
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
/* | |
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE | |
Version 1, October 2013 | |
Copyright (c) 2020 Al-buharie Amjari <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified copies | |
of this license document, and changing it is allowed as long as the name | |
is changed. | |
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE TERMS |
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 INF 0x7F800000 | |
int inf = INF; | |
long double factorial(const int temp) { | |
if (temp == 0) | |
return 1.0; | |
long double fact = 1; | |
for (int i = 1; i <= temp; i++) { |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
char wav_struct[] = { | |
'R', 'I', 'F', 'F', | |
0, 0, 0, 0, /* chunksize */ | |
'W', 'A', 'V', 'E', | |
'f', 'm', 't', ' ', /* subchunk1id */ | |
16, 0, 0, 0, /* subchunk1size */ |
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> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define SECONDS 6 /* you can change this to suit for your preferences */ | |
#define LENGTH 300 /* you can experiment with different string length */ | |
char wav_struct[] = { | |
'R', 'I', 'F', 'F', |
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> | |
int main(){ | |
int arr[] = {6, 2, 5, 1, 20, 12, 8, 3, 400, 13, 13, 32}; | |
int lenarr = 12; | |
int a = 0; | |
int b = 1; | |
int look; |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
char wav_struct[] = { | |
'R', 'I', 'F', 'F', | |
0, 0, 0, 0, /* chunksize */ | |
'W', 'A', 'V', 'E', | |
'f', 'm', 't', ' ', /* subchunk1id */ | |
16, 0, 0, 0, /* subchunk1size */ |
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
all : main libfunc.so | |
.PHONY : all | |
main : main.c | |
$(CC) -rdynamic $^ -o $@ | |
libfunc.so : func.c | |
$(CC) -shared -fPIC $^ -o $@ | |
.PHONY : clean |
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> | |
#include <stdint.h> | |
char wav_data[] = { | |
'R', 'I', 'F', 'F', | |
0, 0, 0, 0, | |
'W', 'A', 'V', 'E', | |
'f', 'm', 't', ' ', | |
16, 0, 0, 0, /*subchunk1size*/ | |
1, 0, /*audio format*/ | |
1, 0, /*num channels*/ |
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> | |
int | |
main(){ | |
char tobe_encrypted[8]; | |
printf("enter pin: "); | |
scanf("%s", tobe_encrypted); | |
char tmp; | |
char processed9[8]; | |
for (int i = 0; i < 8; i++){ |