Skip to content

Instantly share code, notes, and snippets.

View uvegla's full-sized avatar
🐘

Laszlo Uveges uvegla

🐘
View GitHub Profile

Keybase proof

I hereby claim:

  • I am uvegla on github.
  • I am uvegla (https://keybase.io/uvegla) on keybase.
  • I have a public key ASAw_ePUeoGCAk6n37Uw2InnXln_vK0mbo9KA7F4wAmpUAo

To claim this, I am signing this object:

@uvegla
uvegla / main.py
Created August 16, 2020 08:14
MTG set playability scraper for EDH
#!/usr/bin/env python
import io
import json
import re
import zipfile
from pathlib import Path
from typing import Iterator, Set, List, Dict
import click
@uvegla
uvegla / abs-overflow.cpp
Last active September 10, 2017 20:12
Test overflow in std::abs function
#include <iostream>
#include <limits>
#include <cmath>
int main() {
int x = std::numeric_limits<int>::min();;
int a = std::abs(x);
unsigned b = std::abs(x);
#!/bin/sh
soffice --convert-to txt *.doc --headless
find *txt | awk -F".txt" '{print $1}' | xargs -P 4 -I {} ebook-convert {}.txt {}.epub --no-default-epub-cover
rm *txt