This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Breakpoint Mixin | |
/// | |
/// @author Henning Pohlmeyer | |
/// | |
/// @content | |
/// | |
/// @param {Number} $min - The minimum breakpoint range | |
/// @param {Number} $max [null] - The maximum breakpoint range | |
/// @param {Number} $ppi [null] - Exclude screens below a screen density of $ppi | |
/// @param {String} $type [screen] - Add a media type other than screen (e.g. print) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I am using flat variables, following the SUIT naming convention. Every | |
// variable should be available in the global space for reference of single | |
// values, whithout the need to rely on mixins. | |
// | |
// I know this can be done with maps and mixins, but that would require to | |
// ignore the variable naming scheme, I use for every other variable in the | |
// project. | |
$--bpMobileRangeMax: 334px; | |
$--bpMobileRangeMin: null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* i-- | |
* Range: 9…0 | |
* After Loop: -1 | |
* Decrementation: After while condition check; before loop body. | |
*/ | |
var i = 10; | |
while (i--) {…} | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Debug function | |
* | |
* @param mixed $data The data, that should be debugged. | |
* @param bool $dump (default: false) Show var_dump output. | |
* @param bool $console (default: false) Print debug message to the console. | |
* @return void | |
*/ | |
function debug($data, $dump = false, $console = false) { |
NewerOlder