Skip to content

Instantly share code, notes, and snippets.

View fprochazka's full-sized avatar
🏠
Working from home

Filip Procházka fprochazka

🏠
Working from home
View GitHub Profile
@fprochazka
fprochazka / gist:406112
Created May 19, 2010 09:10
TimerPanel
<?php
class TimerPanel extends Object implements IDebugPanel
{
const PRODLEVA = 1800;
const PROTOKOL = 'file'; // safe
const LOG_FILE = "/temp/timerPanel.log";
<?php
class BaseModel
{
static $su;
public function isSU()
{
if( empty(self::$su) ){
<?php
class CSVFile extends ArrayList
{
/*
* Is first line list of titles?
*/
var $titles = True;
var $separator = ',';
<?php
namespace cURL;
use Nette;
class CurlResponse extends Nette\Object {}
<?php
class HtmlButcher implements \ArrayAccess, \Iterator
{
// ....
final public function offsetGet($index)
{
if( substr_count($index, ':') === 1 ){
<?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);
[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
<?php
abstract class BaseModel extends Object
{
/** @var Model instance */
static $register = array();
<?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));
<?php
abstract class Dependencies extends \Nette\Object
{
/**
* Package version
*/
//const VERSION = 0; // 1.0.0