Skip to content

Instantly share code, notes, and snippets.

@janmarek
janmarek / LessFilter.php
Created November 11, 2010 21:45
LessFilter pro WebLoader
<?php
namespace Webloader;
use Nette\String, lessc;
/**
* Less CSS filter
*
* @author Jan Marek
@Mikulas
Mikulas / GravatarPresenter.php
Created December 5, 2010 13:59
Gravatar cache for nette
<?php
class GravatarPresenter extends \Nette\Application\UI\Presenter
{
public function actionDefault($email, $size = 80)
{
$this->sendResponse(new GravatarResponse($email, $size));
}
}
@fprochazka
fprochazka / BaseModel.php
Created May 17, 2011 08:30
Psáno na aktuální Nette (master - 50c3c40)
<?php
abstract class BaseModel extends Nette\Object
{
/** @var NotORM */
protected $connection;
/**
@pksunkara
pksunkara / config
Last active April 20, 2024 04:50
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@Majkl578
Majkl578 / BaseModel.php
Created July 11, 2011 19:25
Nette: Dynamické načítání modelů - Dibi + Nette\DI
<?php
namespace Models;
/**
* Base model
* @link http://wiki.nette.org/cs/cookbook/dynamicke-nacitani-modelu
* @author Majkl578
*/
abstract class Base extends \Nette\Object
/**
* Beta
*
* Sibling of netteForms.js "rewritten to jQuery"
* @author Pavel Kučera
* @author David Grudl author of netteForms.js, of the idea and the one who I copied from
*
* Disclaimer: I'm not a javascript programmer, actually I hate javascript, so consider that please if you want to complain about quality of this utility.
*
* Dependencies
@kevinSuttle
kevinSuttle / meta-tags.md
Last active March 31, 2024 14:26 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
<?php
use Nette\Forms\Form,
Nette\Forms\Controls\TextInput;
class AntispamControl extends TextInput
{
/**
* @return void
@Mikulas
Mikulas / Google.php
Created August 21, 2012 13:21
GoogleAuth
<?php
use \Nette\Utils\Json;
/**
* Minimalistic Google OAuth2 connector
* @author Mikuláš Dítě
* @license BSD-3
*/
class Google extends Nette\Object
@machal
machal / grid.less
Created April 16, 2013 12:52
Mobile First CSS with Boostrap 2.3
// Bootstrap's fluid grid
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);