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
import os | |
import openai | |
from gtts import gTTS | |
import vlc | |
class bcolor: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKCYAN = '\033[96m' | |
OKGREEN = '\033[92m' |

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 <iostream> | |
#include <cassert> | |
#include <gtk/gtk.h> | |
#include <gdk/gdkscreen.h> | |
#include <gdk-pixbuf/gdk-pixbuf.h> | |
#include <cairo.h> | |
static GtkWidget *window; | |
static GdkPixbufAnimation *pixbuf_animation; |
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 <iostream> | |
#include <algorithm> | |
#include <vector> | |
int main(int ac, char* av[]) { | |
std::vector<std::string> permlist = {"test", "This", "is"}; | |
if (ac > 1) { | |
permlist.clear(); |
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 <math.h> | |
float kyp(float t, float kypLength) { | |
return fabs( sin(t * 9.45) * ((t > 0.33 && t < 0.66)? kypLength : 1) ); | |
} | |
float easeIn(float t, float strength) { | |
return pow(t, strength); | |
} |
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 <string.h> | |
const int publicKey = 42; | |
const int privateKey = 256 - publicKey; | |
const int m = publicKey + privateKey; | |
void scramble(char* s, int key) { | |
for (size_t i = 0; i < strlen(s);i++) | |
s[i] = (s[i] + key) % m; |
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
// Dimitar T. Dimitrov 2017 | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <math.h> | |
const int width = 64; | |
const int height = 64; | |
char screen[width * height]; |
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
#ifndef TOTO_EDITIONS_DIMITAR_TDIMITROV | |
#define TOTO_EDITIONS_DIMITAR_TDIMITROV 1 | |
#include <vector> | |
struct Edition { | |
float year; | |
float index; | |
int numbers[6]; |
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
/* | |
* bash_fun.c | |
* | |
* Dimitar T. Dimitrov | |
* 15.06.2016 | |
* | |
*/ | |
#include <sys/ioctl.h> | |
#include <unistd.h> | |
#include <stdio.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
// | |
// unet_udp.c | |
// Unity Transport UDP Layer basic echo server | |
// | |
// Created by Dimitar Dimitrov on 12/27/15. | |
// Copyright © 2015 Dimitar Dimitrov. All rights reserved. | |
// | |
#include <stdlib.h> | |
#include <stdio.h> |
NewerOlder