Skip to content

Instantly share code, notes, and snippets.

View mrfrostikcz's full-sized avatar

Tomáš Volšanský mrfrostikcz

View GitHub Profile
<?php
/**
* This file is part of the Nette Framework (http://nette.org)
* Copyright (c) 2004 David Grudl (http://davidgrudl.com)
*/
namespace Nette\ComponentModel;
use Nette;
@mrfrostikcz
mrfrostikcz / 0_reuse_code.js
Last active August 29, 2015 14:09
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
@mrfrostikcz
mrfrostikcz / example.html
Created October 21, 2015 09:03
Audio (background)
<!doctype html>
<!--[if lte IE 7 ]><html class="ie ie7"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8"><![endif]-->
<!--[if IE 9 ]><html class="ie ie9"><![endif]-->
<!--[if !IE]><!--><html><!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>Audio test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
#!/bin/bash
echo 'Jdi na pivo!'
for (( c=1; c<=3600; c++))
do
time=$(( 3600 - c ))
echo "Pij, mas jeste $time sekund casu."
sleep 1
done
Manualni kategorizace
`bin/console categorization:categorize -c https://static.biano.cz/data/b1/3fa1d1b4d61aa1612b4f5bf9aaeea00dc4cded7752c24bf8d7f3d0e89e7c2c/manual.csv -d";" -en"" -es"\\"`
Nominace
`bin/console nominations:approval -c https://static.biano.cz/data/84/1da87ffc852ea3ec2143e618424e2d90dc2c80630582a2cdc86c6332115ea6/nominations.csv -d";" -en"" -es"\\"`
@mrfrostikcz
mrfrostikcz / README.md
Last active November 29, 2018 17:48
Factcool supplier API
#!/bin/bash
sleep 30
notify-send -u critical -t 3000 "Kernel" "Last software update failed. Please recover previous kernel version manually."
sleep 5m
notify-send -u critical -t 3000 "Crash report" "Unable to find /sys/kernel/slab/buffer_head"
<?php
public function battleResult(string $good, string $evil): string
{
$good = $this->getFormattedResult($good);
$evil = $this->getFormattedResult($evil);
if ($good > $evil) {
return 'Battle Result: Good triumphs over Evil';
}
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Unreal Engine",
"logo": "https://cdn.icon-icons.com/icons2/2389/PNG/512/unreal_engine_logo_icon_144771.png",
"description": "Unreal Engine je herní engine, který byl vytvořen firmou Epic Games. Jeho první verze z roku 1998 byla použita ve hře Unreal. Od té doby byl Unreal Engine několikrát vylepšen a doplněn, aby mohl být použit v několika desítkách novějších herních titulů.",
"companies": ["Epic Games"],
"platforms": ["PC", "PlayStation", "Xbox", "Nintendo", "iOS", "Android"]
},
{