Skip to content

Instantly share code, notes, and snippets.

View viliml's full-sized avatar

Vilim Lendvaj viliml

  • Popovača, Hrvatska
View GitHub Profile
#include "grader.h"
#include "encoder.h"
#include "decoder.h"
#include <algorithm>
#include <vector>
#include <iostream>
// No communication/shared data between two namespaces please.
namespace Encoder
{
@viliml
viliml / YUNO_Switch_BG_viewer_GUI.py
Last active May 24, 2019 20:02
With much code copying from Nimms <nimms@ya.ru> and anon
#!/usr/bin/env python3
import sys
import glob
import os
import struct
import codecs
from PIL import Image, ImageTk
from itertools import product
@viliml
viliml / next_combination.cpp
Last active April 23, 2024 18:53
Generates all k-combinations of a range that may contain equal elements
// [first, from) and [to, last) are non-overlapping ranges
template<class Iter>
void reverse_gapped(Iter first, Iter from, Iter to, Iter last) {
if (from == to) {
std::reverse(first, last);
return;
}
if (first == from) {
std::reverse(to, last);
return;