Instantly share code, notes, and snippets.

View mixins.scss
// Ensure CSS grid works with IE 11 spec.
// sass-lint:disable no-vendor-prefixes, no-duplicate-properties
@mixin display-grid {
display: -ms-grid;
display: grid;
// $columns values should be delimited by a space
@mixin grid-template-columns($columns...) {
View betterxml.function.php
* Giving myself more functionality over this bit
* @author byrd
class BetterXML extends SimpleXMLElement

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View DateTime.php
namespace MyNamespace;
$date = new ADateTime('2018-03-28');
$date->sub(new \DateInterval('P1M'));
echo $date->format('Y-m-d') . "\n";
View jQuery.stringify.js
* converted stringify() to jQuery plugin.
* serializes a simple object to a JSON formatted string.
* Note: stringify() is different from jQuery.serialize() which URLEncodes form elements
* Added a fix to skip over Object.prototype members added by the prototype.js library
* jQuery.ajax({
View Com.latte
{* Component template *}
<div style="border-style: solid; border-width: 1px;">
<p>Jméno komponenty: {$control->name}</p>
{snippet com}
<p>Čas vykreslení:{$time|date:'%H:%M:%S'}</p>
<p><a n:href="refresh!" class="ajax">REFRESH (invalidování)</a></p>
View ghost-element-vertical-align.css
/* This parent can be any width and height */
.block {
text-align: center;
/* May want to do this if there is risk the container may be narrower than the element inside */
white-space: nowrap;
/* The ghost, nudged to maintain perfect centering */
.block:before {
View BasePresenter.php
* @author Filip Procházka <>
abstract class BasePresenter extends Nette\Application\UI\Presenter
* @var \Img\ImagePipe