Skip to content

Instantly share code, notes, and snippets.

View ihabunek's full-sized avatar

Ivan Habunek ihabunek

View GitHub Profile
@ihabunek
ihabunek / gist:6800416
Last active December 24, 2015 12:49
Human readable tjedan restorana
American Express Tjedan restorana Zagreb 2013. Sva prava pridržana.
www.tjedanrestorana.com

RESTORAN: Agava

JELOVNIK I

Predjelo: Topla salata od tune u „Salmoriglio“ marinadi

@ihabunek
ihabunek / baklava.rst
Last active December 26, 2015 00:39
My baklava recipe translated to english

Baklava

Syrup

  • 1 l water
  • 0.5 kg brown sugar
  • skin of 1 orange (peeled, not grated)
  • juice of 1 orange
<?php
$start = microtime(true);
$a = 0;
for ($i=0; $i < pow(10, 5); $i++) {
$a++;
}
$duration = microtime(true) - $start;
@ihabunek
ihabunek / gist:8174265
Last active January 1, 2016 16:59
Radna kanta za ispod 6Kkn
CPU Intel i5 1450kn http://www.adm.hr/product_info.php?cPath=258_217_255_390&products_id=13175
MB GA-B85-HD3 650kn http://www.adm.hr/product_info.php?cPath=258_217_214_391&products_id=13247
16GB RAM 1200kn http://www.adm.hr/product_info.php?cPath=258_217_160_246&products_id=11903
256GB SSD 1375kn http://www.adm.hr/product_info.php?cPath=258_217_29_319&products_id=12237
1TB HDD 610kn http://www.adm.hr/product_info.php?cPath=258_217_29_179&products_id=13958
Case CM 530kn http://www.adm.hr/product_info.php?cPath=258_34_71&products_id=10817
Ukupno: 5815 kn
@ihabunek
ihabunek / performance.php
Created February 4, 2014 12:56
Testing a static event emitter in Evenement
<?php
require 'vendor/autoload.php';
define("LISTENERS", 100);
define("EVENTS", 100000);
printf("\n* Emitting %d events to %d listeners.\n\n", EVENTS, LISTENERS);
// --- Dynamic ---

Keybase proof

I hereby claim:

  • I am ihabunek on github.
  • I am ihabunek (https://keybase.io/ihabunek) on keybase.
  • I have a public key whose fingerprint is 66DA B78A 4C4F 0D9B 00F5 F179 D625 F8FA ED82 13F4

To claim this, I am signing this object:

@ihabunek
ihabunek / sgndecode
Last active August 29, 2015 14:00
Skripta za dekodiranje SGN datoteka s bankovnim izvodima (bez provjere potpisa)
#!/bin/bash
file=$1
if [ -f "$file" ]
then
xmllint --xpath "/FileUpload/File/text()" --nocdata $file | base64 -d | funzip
else
echo "File not found: $file"
fi
@ihabunek
ihabunek / composer.json
Created May 8, 2014 13:02
Weird error reporting in ReactPHP
{
"require": {
"react/event-loop": "0.4.*"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Marcus Ekwall, Ivan Habunek</string>
<key>name</key>
<string>Obsidian</string>
<key>version</key>
<string>0.1</string>