Skip to content

Instantly share code, notes, and snippets.

View over-engineer's full-sized avatar
🏠
Working from home

Konstantinos Pappas over-engineer

🏠
Working from home
View GitHub Profile
@over-engineer
over-engineer / _grid.scss
Created November 25, 2018 23:50
Sassy Bootstrap 4 golden ratio
// Bootstrap 4.1.3
// Golden Ratio
@import '~/bootstrap/scss/functions';
@import '~/bootstrap/scss/variables';
@import '~/bootstrap/scss/mixins/breakpoints';
@import '~/bootstrap/scss/mixins/grid-framework';
@import '~/bootstrap/scss/mixins/grid';
@import '~/bootstrap/scss/grid';
@over-engineer
over-engineer / every.php
Last active November 25, 2018 23:56
PHP equivalent of JavaScript's Array.prototype.every()
<?php
/**
* Checks if all items in array pass a test (provided as a function)
*
* If it finds an array item where the function returns a `false` value,
* it returns `false` (and does not check the remaining values)
*
* If no false occur, it returns `true`
*
* It doesn't execute the function for array elements without values