Skip to content

Instantly share code, notes, and snippets.

View ihabunek's full-sized avatar

Ivan Habunek ihabunek

View GitHub Profile
@ihabunek
ihabunek / maim.sh
Last active November 9, 2018 14:00
#!/usr/bin/env bash
# Find an unused file name to capture to
DIR=~/Pictures/Screenshots/
N=1
while [ -f "$DIR`printf %05d $N`.png" ]; do
N=$((N+1))
done
FILENAME=$DIR`printf %05d $N`.png
@ihabunek
ihabunek / README.md
Last active October 8, 2018 16:27
Human readable menus for Tjedan Restorana 2018

Human readable menus for Tjedan Restorana 2018

As always, here are the menus in a single, readable and searchable markdown formatted file.

Script which generated this is at the bottom. Some manual adjustments were done to improve output quality.

Enjoy, Ivan

@ihabunek
ihabunek / tjedan-restorana-19.md
Last active March 9, 2018 10:24
Human readable menus for Tjedan restorana

19. Tjedan restorana

2018-03-09 - 2018-03-18
http://tjedanrestorana.com/

Web site scraped and parsed to generate a single markdown file containing all the menus.

Script used to generate the markdown is attached below the menus. Table of contents and minor adjustments done by hand.

Share and enjoy.

(ns aoc2017.foo)
(def node-map
"A tree structure defined as a map"
{:a [:b :c]
:b [:d :e :f]
:e [:g :h :i]
:i [:j :k]})
(defn count-nodes

Tjedan Restorana 2017

Human-readable menus.

RESTORAN: Academia, Bluesun Hotel Kaj

PREDJELO

  1. Juha od graha s hrskavim kruhom
  2. Ragu od junetine s naših pašnjaka – homemade pasta s brašnom od bučinih sjemenki
@ihabunek
ihabunek / bangkok.md
Last active January 1, 2017 19:17
Bangkok

Bangkok

Adaptirao sam i nadopunio malo preporuke koje sam slao već drugima. :)

Hramovi

Ima ih. Ako bih odabrao samo tri to bi možda bili Wat Arun, Wat Phra Kaew i Wat Saket. Ovisi koliko volite gledati Budu u sto pozicija. Za neke traže da imate pokrivene noge i ramena. Mi smo nosili sa sobom sarong za zamotati preko kratkih hlača gdje treba.

Tržnice

@ihabunek
ihabunek / pipe.php
Last active May 8, 2016 13:07
A use case for the pipe operator in PHP (https://wiki.php.net/rfc/pipe-operator)
<?php
function slugify($string)
{
$string = strtr($string, CharacterMap::get());
$string = preg_replace('/[^\\p{L}\\d]+/u', '-', $string);
$string = trim($string, '-');
$string = iconv('utf-8', 'ASCII//TRANSLIT', $string);
$string = strtolower($string);
$string = preg_replace('/[^-\w]+/', '', $string);

From: noreply@services.dlh.de

Dear Mr. Habunek,

thank you for your request.

Passenger Receipts issued by Lufthansa German Airlines (DLH AG) count as tickets in accordance with German law (§ 34 UStDV) and therefore are valid invoices as defined by §14 German Sales Tax Law.

According to § 34 UStDV tickets must contain the following minimum information:

  • the full name and complete address of the contractor executing the transportation service
@ihabunek
ihabunek / gist:c74fb2d555fecea37aef
Created July 6, 2015 07:46
Compile PHP On Windows
====== Build your own PHP on Windows ======
===== Before you Begin =====
Building PHP on Windows will require three things
- A properly set up build environment, including a compiler with the right SDK's and some binary tools used by the build system
- Prebuilt libraries and headers for third party libraries that PHP uses in the correct location
- The PHP source
===== Compiler =====
@ihabunek
ihabunek / gist:47eed8bb22808b092301
Created June 26, 2015 06:25
Changes to PHP wiki
====== Build your own PHP on Windows ======
===== Before you Begin =====
Building PHP on Windows will require three things
- A properly set up build environment, including a compiler with the right SDK's and some binary tools used by the build system
- Prebuilt libraries and headers for third party libraries that PHP uses in the correct location
- The PHP source
===== The Build Environment =====