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
const tColors = require('tailwindcss/colors'); | |
const colors = { | |
primary: '#FF0000', | |
secondary: '#9E0000', | |
gray: { | |
100: '#EEF0F3', | |
200: '#EDEDED', | |
300: '#D9D9D9', | |
400: '#AAAAAA', | |
500: '#777777', |
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
Vue.directive("in-viewport", { | |
inserted: function(el, binding) { | |
if(!!window.IntersectionObserver){ | |
el.observer = new IntersectionObserver((entries, observer) => { | |
entries.forEach(entry => { | |
if(entry.isIntersecting){ | |
if (typeof binding.value === "function"){ | |
binding.value(); | |
} | |
entry.target.src = entry.target.dataset.src; |
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
Using this technique, linux apps (WSL2) can be piped to X410 Windows X-Server. | |
Windows: | |
- VBS script to execute/run a powershell without viewing a shell window. | |
- PS1 script to | |
1) start X410 server if not already running | |
2) get screen width of monitor | |
3) execute linux script with optional possibility to pass parameter for hidpi settings | |
Linux: |
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
### Keybase proof | |
I hereby claim: | |
* I am gitsack on github. | |
* I am schrottpresse (https://keybase.io/schrottpresse) on keybase. | |
* I have a public key ASCYwKjzwB_tMJlrPQAToQdBeamFlNXMLMHcWVCF_i9AVgo | |
To claim this, I am signing this object: |