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
function isVisible(element) { | |
const style = window.getComputedStyle(element); | |
return style.display !== 'none'; | |
} | |
function isFocusable (element) { | |
const focusableElements = [ | |
'a[href]', | |
'button:enabled', | |
'input:enabled', |
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
::-webkit-scrollbar { | |
width: 11px; | |
} | |
::-webkit-scrollbar-track { | |
background: transparent; | |
} | |
::-webkit-scrollbar-thumb { | |
background-color: rgba(120, 120, 120, 0.3); | |
} | |
::-webkit-scrollbar-thumb:hover { |
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
function createElementFromHTML(htmlString) { | |
var div = document.createElement('div'); | |
div.innerHTML = htmlString.trim(); | |
return div.firstChild; | |
} | |
const markup = ` | |
<span> | |
<style> | |
data-testid="reaction_facepalm" { |
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
bcdedit | |
bcdedit /set hypervisorlaunchtype off | |
Restart your PC system to use VirtualBox | |
# Re-enable: | |
bcdedit /set hypervisorlaunchtype auto | |
# source: https://discuss.erpnext.com/t/virtualbox-wont-run-raw-mode-unavailable-courtesy-of-hyper-v/34541/10?u=daniel_morgenstern |
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
git log `git describe --tags --abbrev=0`..HEAD --oneline |
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
# List temporarily ignored files: | |
[alias] | |
ignored = !git ls-files -v | grep "^[[:lower:]]" |
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
git push --force-with-lease | |
// source: https://stackoverflow.com/a/37460330/1205127 |
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
# generated by Git for Windows | |
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc |
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
[WIN] + [R] -> | |
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,Advanced,@Advanced | |
# source: https://www.howtogeek.com/222831/how-to-get-colored-window-title-bars-on-windows-10-instead-of-white/ |
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
# located in .git/config: | |
# VSCode will use this to prefill the git commit message box. | |
[commit] | |
template = .git/.gitmessage.txt |