Skip to content

Instantly share code, notes, and snippets.

View tomexx's full-sized avatar

Tomas Listiak tomexx

View GitHub Profile
@tomexx
tomexx / jade-to-laravel-blade-mixins.jade
Last active August 29, 2015 14:21 — forked from franzose/jade-to-laravel-blade-mixins.jade
Mixin enhancements (include within if-else clause, +foreach fix, +inlude fix for passing more parameters)
//- As you may know, Laravel 5 provides the Elixir to compile assets with no pain.
These mixins is for those of you who want to use Jade power combined with that of Laravel Blade.
The syntax mimic Blade statements, however identation differs in some cases.
- var newline = "\r\n"
- var loopIterator = '$iterator'
//- @extends mixin
Example: +extends('layouts/master')
Compiled: @extends('layouts/master')
mixin extends(file)
| @extends('#{file}')
@tomexx
tomexx / user-javascript-and-css
Last active November 14, 2019 18:23
Hurrier McDonald's pickup alert
const $container = $('.container.well').eq(0)
const $tableLines = $container.find('.active_deliveries > tbody > tr')
const colorSuccess = '#009e45'
const colorError = 'red'
const overloadLimit = 3
const courierMap = new Map()
let overloadedCouriers = []
// create mapping