Skip to content

Instantly share code, notes, and snippets.

View pepa-linha's full-sized avatar
🏠
Working from home

Pepa Linha pepa-linha

🏠
Working from home
  • Prague
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@pepa-linha
pepa-linha / Presenter.php
Last active August 8, 2020 10:49
Nette ACL - assertions
<?php
public function formSuccess (Form $form, ArrayHash $values)
{
if (!$user->isAllowed($this->product, 'write-review')) {
// tady bych chtěl ty hlášky taky :-)
$form->addError(...);
return;
}
}
@pepa-linha
pepa-linha / SassMeister-input.scss
Created April 15, 2019 02:40 — forked from athaeryn/SassMeister-input.scss
Sass mixin for z-index
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/*
* inspired by:
* http://www.smashingmagazine.com/2014/06/12/sassy-z-index-management-for-complex-layouts/
*/
$z: (