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
# https://deluxeblogtips.com/remove-image-sizes/ | |
find . -name "*-*x*.*" | xargs rm -f |
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
// 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 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 |
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
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 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 whichTransitionEvent = (function (){ | |
var t; | |
var el = document.createElement('fakeelement'); | |
var transitions = { | |
'transition' :'transitionEnd', | |
'OTransition' :'oTransitionEnd', | |
'MSTransition' :'msTransitionEnd', | |
'MozTransition' :'transitionend', | |
'WebkitTransition' :'webkitTransitionEnd' | |
} |
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
// Utility function | |
function Util () {}; | |
/* | |
class manipulation functions | |
*/ | |
Util.hasClass = function(el, className) { | |
if (el.classList) return el.classList.contains(className); | |
else return !!el.className.match(new RegExp('(\\s|^)' + className + '(\\s|$)')); | |
}; |
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
// Utility function | |
function Util () {}; | |
/* | |
class manipulation functions | |
*/ | |
Util.hasClass = function(el, className) { | |
if (el.classList) return el.classList.contains(className); | |
else return !!el.className.match(new RegExp('(\\s|^)' + className + '(\\s|$)')); | |
}; |
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 debug_log($object = null, $label = null) | |
{ | |
$message = json_encode($object, JSON_PRETTY_PRINT); | |
$label = "Debug" . ($label ? " ($label): " : ': '); | |
echo "<script>console.log(\"$label\", $message);</script>"; | |
} |