This file contains 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
/** | |
* Convert font-size from px to rem with px fallback | |
* | |
* @param $size - the value in pixel you want to convert | |
* | |
* e.g. p {@include fontSize(12px);} | |
* | |
*/ | |
// Function for converting a px based font-size to rem. |
This file contains 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
@mixin not($ignorList...) { | |
//if only a single value given | |
@if (length($ignorList) == 1){ | |
//it is probably a list variable so set ignore list to the variable | |
$ignorList: nth($ignorList,1); | |
} | |
//set up an empty $notOutput variable | |
$notOutput: ''; | |
//for each item in the list | |
@each $not in $ignorList { |
This file contains 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
<filesMatch "\.(html|htm|js|css)$"> | |
FileETag None | |
<ifModule mod_headers.c> | |
Header unset ETag | |
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" | |
</ifModule> | |
</filesMatch> |
This file contains 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 | |
function addUrlParam($url, $param) { | |
$url_parts = parse_url($url); | |
parse_str($url_parts['query'], $params); | |
$params[$param[0]] = $param[1]; | |
$url_parts['query'] = http_build_query($params); | |
//return http_build_url($url_parts); //pecl | |
return $url_parts['scheme'] . '://' . $url_parts['host'] . $url_parts['path'] . '?' . $url_parts['query']; | |
} |
This file contains 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
@mixin breakpoint($class) { | |
@if $class == xs { | |
@media (max-width: 767px) { @content; } | |
} | |
@else if $class == sm { | |
@media (min-width: 768px) { @content; } | |
} | |
@else if $class == md { |
This file contains 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
search/replace | |
Find what: ^\n | |
or | |
Find what: ^[\s]*?[\n\r]+ | |
Replace With: (nothing, leave in blank). |
This file contains 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
var keepsHisWord; | |
keepsHisWord = true; | |
promise1 = new Promise(function(resolve, reject) { | |
if (keepsHisWord) { | |
resolve("The man likes to keep his word"); | |
} else { | |
reject("The man doesnt want to keep his word"); | |
} | |
}); | |
console.log(promise1); |
This file contains 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
address=/devl/127.0.0.1 |
This file contains 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
Builder: | |
- | |
text: | | |
Die zunehmende Urbanisierung stellt Städte vor eine Vielzahl von Herausforderungen – auch mit Blick auf die Mobilität: Mit der Einwohnerzahl wachsen auch die Verkehrsprobleme innerhalb von Ballungszentren. Der Verkehrssektor trägt über ein Viertel zum weltweiten Ausstoß klimaschädlicher Emissionen bei und wirkt sich negativ auf Umwelt und Gesundheit aus. Gleichzeitig stellt Mobilität ein Grundbedürfnis der Stadtbewohnerinnen und -bewohner dar und ist damit eine wichtige Voraussetzung für Wirtschaftswachstum, persönliches Wohlbefinden, Kreativität und soziale Integration. Um Städte wieder zu lebenswerten, sauberen und gesunden Orten zu machen, sind intelligente Lösungen gefragt. | |
(image: magazin-mobilitaet-1.svg) | |
_key: text | |
_uid: text_0 |
OlderNewer