Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Wine settings
export WINEESYNC=1
export WINEFSYNC=1
export WINEARCH=win32
export WINEPREFIX="$SCRIPT_DIR/pfx"
export WINEDLLOVERRIDES="mscoree=d;mshtml=d;"
export WINE="$(command -v wine)"
@FMudanyali
FMudanyali / bad_apple.c
Last active July 24, 2022 16:42
Bad Apple CLI (far from perfect)
#include <stdio.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <time.h>
#include <libavformat/avformat.h>
#include <unistd.h>
void draw_bmp(uint32_t frame_count, char *filename, uint8_t framerate){
FILE *bmp_handle;
FILE *buffer_handle;
@FMudanyali
FMudanyali / point_to_area.py
Created November 3, 2020 19:06
simple python script to calculate areas of quadrangle and parallelogram
def dikdortgen_alan(point1, point2, point3, point4):
"""
* * * 2 * * *\n
* * * * * * *\n
1 * * * * * 4\n
* * * * * * *\n
* * * 3 * * *\n
kenar1 * kenar2\n
pisagor teoremi der ki sqrt(a^2 + b^2) = c\n
kenar1 => nokta2 x - nokta1 x = a, nokta2 y - nokta1 y = b\n
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <ncurses.h>
void main(){
srand(time(NULL));
int a;