Skip to content

Instantly share code, notes, and snippets.

View dalailomo's full-sized avatar
🍑
melocotón

Peter dalailomo

🍑
melocotón
  • Barcelona, Spain
View GitHub Profile
@dalailomo
dalailomo / mq.less
Last active January 6, 2018 17:20
media queries helper less
@highdensity: ~"only screen and (-webkit-min-device-pixel-ratio: 1.5)",
~"only screen and (min--moz-device-pixel-ratio: 1.5)",
~"only screen and (-o-min-device-pixel-ratio: 3/2)",
~"only screen and (min-device-pixel-ratio: 1.5)";
@mobile: ~"only screen and (max-width: 529px)";
@tablet: ~"only screen and (min-width: 530px) and (max-width: 991px)";
@desktop: ~"only screen and (min-width: 992px) and (max-width: 1199px)";
@desktop-xl: ~"only screen and (min-width: 1200px)";
// usage: @media @mobile { ... }
@dalailomo
dalailomo / behat.yml
Created November 29, 2017 11:38
behat phantomjs config yml
default:
suites:
default:
contexts:
- BaseContext
- Devinci\DevinciExtension\Context\DebugContext:
asset_dump_path: '%paths.base%/asset'
- Devinci\DevinciExtension\Context\JavascriptContext:
maximum_wait: 30
extensions:
@dalailomo
dalailomo / childprocess.php
Created May 25, 2017 16:18
reactphp async child processes
<?php
require 'vendor/autoload.php';
function notify($output, $command)
{
echo <<<EOF
"$command":
---------------------------------------
@dalailomo
dalailomo / atom-css-tabs-on-right.less
Last active November 1, 2017 14:57
Put atom tabs on right side
// Tabs on the right side
.vertical .pane {
flex-direction: row-reverse;
font-family: Monaco, monospace;
.tab-bar {
height: auto;
flex-direction: column;
min-width: 130pt;