Skip to content

Instantly share code, notes, and snippets.

@Mikulas
Mikulas / uli.md
Created May 14, 2016 07:42 — forked from freaz/uli.md
FI-ULI

ULI výpisky

Přednáška 1 - Jazyk, komunikace a lingvistika

Jazyk je:

  • znakový systém
  • sloužící k dorozuívání mezi lidmi
  • k vyjádření libovolného obsahu vědomí
  • s bohatou vnitřní strukturou
  • užívaný a přijímaný v určitém společenství
  • objektový jazyk x metajazyk
@Mikulas
Mikulas / .gitignore
Last active August 19, 2016 12:30 — forked from JanTvrdik/generate-root-certificate.sh
Generate TLS certificate signed by root certificate
/root.crt
/root.key
/root.srl
/*.crt
/*.csr
/*.key
/*.packed.pem
/*.fullchain
@Mikulas
Mikulas / mikulas.wanikani.wallpaper.plist
Last active September 21, 2015 21:20 — forked from zosiu/wk_wallpaper.rb
OS X WaniKani wallpaper
#!/usr/bin/env bash
DIR="/Users/mikulas/Dropbox/Images/Wallpapers/wanikani"
DAILY="$DIR/daily/$(date '+%Y%m%d').png"
if [[ -e "$DAILY" ]]; then
echo "Already generated today"
exit 1
fi
@Mikulas
Mikulas / install.sh
Last active August 29, 2015 14:19 — forked from AoJ/install.sh
git clone https://github.com/steida/este.git
cd este
npm install
npm list
@Mikulas
Mikulas / 0_reuse_code.js
Created December 11, 2013 21:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
public class Comparator { // Třída Comparator, porovnává filter a databázi
public static List<Applicant> compare(List<Applicant> applicants, HashMap<String, List<Integer>> filter) {
Map<Integer, Integer> score = new TreeMap<Integer, Integer>(); // Iaždý kandidát bude mít skóre, podle kterého řadíme
Integer i = 0;
for (Applicant a : applicants) {
System.out.println(a.getName() + " " + i);
score.put(i, 0); // Inicializace
i++;
}
<?php
public function templatePrepareFilters($template) {
$template->registerFilter($latte = new Nette\Templates\LatteFilter());
TwigMacro::register($latte->getHandler());
}
@Mikulas
Mikulas / git-control.sh
Created October 23, 2010 18:42 — forked from fprochazka/git-control.sh
Git project control for Mac
#!/bin/bash
srcLibs="/Volumes/Data/Web"
colorPrefix="\033["
colorPostfix="\033[0m"
color_default="0"
color_red="31"
color_red_bold="1;31"
@Mikulas
Mikulas / FormMacros.php
Created October 3, 2010 11:03 — forked from janmarek/FormMacros.php
Form Macros
<?php
namespace Nette\Templating;
use Nette\Forms\Form;
use Nette\Utils\Strings as String;
use Nette\InvalidStateException;
use Nette\Object;
use Nette\Latte\DefaultMacros;