Skip to content

Instantly share code, notes, and snippets.

View trunda's full-sized avatar

Jakub Truneček trunda

  • B2M.CZ s.r.o.
  • Prague
View GitHub Profile
@trunda
trunda / console.css
Last active August 29, 2015 13:58
Templates for JS Bin
div#console {
font-family: 'Ubuntu Mono';
font-size: 12px;
background-color: red;
}
<div class="span4">
<div class="well">
<span class="garantion cs" rel="tooltip" data-placement="right" title="" data-original-title="Zaregistrujte se do systému&nbsp;ePoptávka.cz&nbsp;a&nbsp;získejte roční garanci spokojenosti. Pokud nezískáte pomocí naší služby jedinou zakázku, vrátíme Vám celý poplatek zpět!"></span>
<h3><span class="label label-success" style="
position: absolute;
top: -18px;
left: 105px;
font-size: 12px;
padding: 5px;
border-radius: 0;
@trunda
trunda / chef_bootstrap.sh
Last active December 21, 2015 06:59
Install script for Ruby and Chef
#!/usr/bin/env bash
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
gem install chef ruby-shadow --no-ri --no-rdoc
@trunda
trunda / BasePresenter.php
Last active December 13, 2015 18:58
SmfMenu with SmfEvents
<?php
namespace Simpleshop\Modules\Admin\Presenters;
use Nette\Application\UI\Presenter;
use Simpleshop\Modules\Admin\Events\MenuEvent;
use Smf\Events\IEventDispatcher;
use Smf\Menu\Control\Factory;
abstract class BasePresenter extends Presenter
{