Skip to content

Instantly share code, notes, and snippets.

Taras Kushnir ribtoks

Block or report user

Report or block ribtoks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
filetype plugin on
filetype indent on
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
set nocompatible
" allow to change buffer with unsaved changes
set hidden
ribtoks / Database.cpp
Created Jul 26, 2017
BerkeleyDB Qt wrappers
View Database.cpp
#include "database.h"
#include <QDir>
#include <cstring>
#include <cmath>
#include <db.h>
#include "../Common/defines.h"
#include "constants.h"
#define DEFAULT_PAGESIZE (1024)
ribtoks / Makefile
Created Sep 29, 2016
exiv2 threading crash test
View Makefile
EXIV2_INCLUDEPATH =../xpiks/src/exiv2-0.25/include
SOURCES = main.cpp
OBJDEPS = libexiv2.lib libexpat.lib
.PHONY: debug
debug: test_exiv2
ribtoks /
Created Apr 20, 2014
popcorn time for desktop installer script for linux openSUSE
# Script author: MrVaykadji
# Changes made by Ribtoks
# - simulink for compass2.0 in /usr/bin/
# - replaced apt commands with zypper commands
# Changes made by Andrew <>:
# - use the NodeJS PPA to avoid build failure with grunt-cli
# - use the Popcorn Time icon
# - added check for apt, dpkg, etc.
# - added some checks when creating symbolic links
ribtoks / spiral.rb
Created Jan 30, 2014
Generating spiral matrices
View spiral.rb
def spiral(n)
arr ={{0}}
diff = [[0, 1], [1, 0], [0, -1], [-1, 0]]
i, j = 0, 0
dindex = 0
turns = 0
curr_square = n
shift = 0
(n*n).times do |index|
ribtoks /
Last active Aug 20, 2017
Solution of the Santa Claus problem in Ocaml
rm santa_problem &> /dev/null
rm *.cmo &> /dev/null
rm *.cmi &> /dev/null
rm *.mli &> /dev/null
THREAD_PARAMS="-thread unix.cma threads.cma"
You can’t perform that action at this time.