Skip to content

Instantly share code, notes, and snippets.

View martinkunev's full-sized avatar

Martin Kunev martinkunev

View GitHub Profile
@martinkunev
martinkunev / her_story_game
Created November 12, 2019 13:07
A tool script for watching the videos in the game Her Story. The play video functionality doesn't work on wine so I found an existing script and adapted it for this purpose.
#!/usr/bin/python
# type "help" into any menu to get help
# search <keyword> will bring up results
# play <videoid> will play the video and remove it from your played list
# back will return you to the main menu
# quit will end the game
import cmd
import os
@martinkunev
martinkunev / hashmap.c
Created November 28, 2017 15:34
Hash map
/*
* Conquest of Levidon
* Copyright (C) 2016 Martin Kunev <martinkunev@gmail.com>
*
* This file is part of Conquest of Levidon.
*
* Conquest of Levidon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License.
*
@martinkunev
martinkunev / Domains.pm
Created January 31, 2012 12:20
[perl] Script that tracks log files and domain registrations and alerts on problems
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
package Domains;
our $VERSION = '1.0';
use DBI;
@martinkunev
martinkunev / heap.c
Created November 14, 2011 22:52
Binary heap (C implementation)
// WARNING: Requires C99 compatible compiler
#include <unistd.h>
#include <stdlib.h>
#include "heap.h"
#define CMP(a, b) ((a) >= (b))
static const unsigned int base_size = 4;
@martinkunev
martinkunev / AVL tree
Last active November 28, 2017 15:32
AVL tree (C implementation)
/*
* Conquest of Levidon
* Copyright (C) 2017 Martin Kunev <martinkunev@gmail.com>
*
* This file is part of Conquest of Levidon.
*
* Conquest of Levidon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License.
*