Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Filip Procházka fprochazka

🏠
Working from home
Block or report user

Report or block fprochazka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:406112
<?php
class TimerPanel extends Object implements IDebugPanel
{
const PRODLEVA = 1800;
const PROTOKOL = 'file'; // safe
const LOG_FILE = "/temp/timerPanel.log";
View BaseModel.php
<?php
class BaseModel
{
static $su;
public function isSU()
{
if( empty(self::$su) ){
View CSVFile.php
<?php
class CSVFile extends ArrayList
{
/*
* Is first line list of titles?
*/
var $titles = True;
var $separator = ',';
View CurlResponse.php
<?php
namespace cURL;
use Nette;
class CurlResponse extends Nette\Object {}
View HtmlButcher.php
<?php
class HtmlButcher implements \ArrayAccess, \Iterator
{
// ....
final public function offsetGet($index)
{
if( substr_count($index, ':') === 1 ){
View generovani_tcpdf.php
<?php
public function handleGenerujSestavu($rok, $mesic)
{
require_once(LIBS_DIR . '/tcpdf/config/lang/eng.php');
$nadpis = "Rekapitulace Zelené Nafty ".$this->getMonth((int)$mesic)." {$rok}";
//$sestava = new tcPdf('P', 'mm', 'A4', true, 'UTF-8', false);
$sestava = new tcPdf(PDF_PAGE_ORIENTATION, PDF_UNIT, 'A4', true);
View gist:502782
[02:16:38] Limping immortal: nemel bych kosat ten kabel od sluchatek
[02:17:20] Limping immortal: nekose to
[02:17:21] Limping immortal: fuj
[02:17:28] Limping immortal: vyplivni
[02:17:31] Limping immortal: hned
[02:17:38] Limping immortal: hodnej
View BaseModel.php
<?php
abstract class BaseModel extends Object
{
/** @var Model instance */
static $register = array();
View zahadne_konstanty.php
<?php // WTF?!
require_once __DIR__ . '/Nette/loader.php';
define('T1', pow(2, 0));
define('T2', pow(2, 1));
define('T3', pow(2, 2));
define('T4', pow(2, 3));
define('T5', pow(2, 4));
define('T6', pow(2, 5));
View Dependencies.php
<?php
abstract class Dependencies extends \Nette\Object
{
/**
* Package version
*/
//const VERSION = 0; // 1.0.0
You can’t perform that action at this time.