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
sudo mdutil -a -i off | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo mdutil -a -i on |
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
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 |
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
address=/devl/127.0.0.1 |
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
// src: https://davidwalsh.name/detect-scrollbar-width | |
// Create the measurement node | |
var scrollDiv = document.createElement("div"); | |
scrollDiv.className = "scrollbar-measure"; | |
document.body.appendChild(scrollDiv); | |
// Get the scrollbar width | |
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; | |
console.warn(scrollbarWidth); // Mac: 15 |
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
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 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
# https://deluxeblogtips.com/remove-image-sizes/ | |
find . -name "*-*x*.*" | xargs rm -f |
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
search/replace | |
Find what: ^\n | |
or | |
Find what: ^[\s]*?[\n\r]+ | |
Replace With: (nothing, leave in blank). |
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
@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 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 | |
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 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
<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> |