Skip to content

Instantly share code, notes, and snippets.

View DinFuc's full-sized avatar
🔴
Offline

DinFuc DinFuc

🔴
Offline
View GitHub Profile
@DinFuc
DinFuc / va_null_terminated.c
Created September 6, 2025 15:27
Playing around with variadic macro
#include <stdio.h>
#include <stdarg.h>
// compound literals
#define count(...) _count_pointer((int[]){0}, __VA_ARGS__, NULL)
size_t _count_pointer(void *unused, ...) {
size_t cnt = 0;
va_list ap;
va_start(ap, unused);
@DinFuc
DinFuc / prime.c
Last active December 21, 2024 06:49
small program to check if the number is prime or not
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#define INT int64_t
#define BUF_SIZE 64
#include <iostream>
class A {
protected:
// public:
int key = 1;
double key2 = 20.1;
int key3 = 123454654;
};
@DinFuc
DinFuc / index.html
Created February 20, 2023 11:58
Text to Speech With Voice Customization
<div class="wrapper">
<label for="text">Text to speak:</label>
<textarea id="text">Hello! Feel free to change this text and don't forget to turn your volume on.</textarea>
<div class="properties">
<label for="voice">Voice:</label>
<select id="voice"></select>
<div></div>
<label for="pitch">Pitch:</label>
<input id="pitch" type="range" min="0.1" max="2" step="0.1" value="1">