Skip to content

Instantly share code, notes, and snippets.

View milan_user_manual.md

How to work with Milan

What I value

  • I recognize individual contribution, but value team work and efforts more
  • I don't mind being wrong, I expect others to be able to admit being wrong as well

How I look at problems

  • I try to find balance between "academically correct" and "practical" solution - "incorrect" solution is ok when circumstances require it, major rework is justifiable in order to achieve correctness when circumstances allow it
  • I like to try things out, bounce ideas - I can't read and think for 3 days and then pick the "perfect solution" - I need to get my hands dirty
  • I like to brainstorm with others, bounce ideas off each other, "no idea is stupid" kind of environment
View keybase.md

Keybase proof

I hereby claim:

  • I am m1n0 on github.
  • I am milanlukac (https://keybase.io/milanlukac) on keybase.
  • I have a public key ASAwLA-Fs_J7XXSaTZ3itqb0v8d9E1v4iEBNxp-F2i5JRwo

To claim this, I am signing this object:

View AuthExtension.php
<?php
namespace ACME\Auth\DependencyInjection;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Config\FileLocator;
class AuthExtension extends Extension
View Yellow detector
cap = cv2.VideoCapture(0)
size = (487, 262)
while True:
_, frame = cap.read()
frame = cv2.resize(frame, size)
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
lower_yellow = np.array([18, 92, 120])
upper_yellow = np.array([35, 255, 255])
View hackathon_test.py
import sys
import datetime
from random import randint
import re
def random_with_n_digits(n):
range_start = 10**(n-1)
range_end = (10**n)-1
return randint(range_start, range_end)
View htmlfiles_migration.inc.php
<?php
class MyMigration extends Migration {
public $base_dir;
/**
* Constructor.
*/
public function __construct() {
parent::__construct();