Skip to content

Instantly share code, notes, and snippets.

View Gitsack's full-sized avatar
💯
Club Mate..?

Martin Reitschmied Gitsack

💯
Club Mate..?
View GitHub Profile
@Gitsack
Gitsack / tailwind.config.js
Created January 31, 2023 06:29
Typical Tailwind Config
const tColors = require('tailwindcss/colors');
const colors = {
primary: '#FF0000',
secondary: '#9E0000',
gray: {
100: '#EEF0F3',
200: '#EDEDED',
300: '#D9D9D9',
400: '#AAAAAA',
500: '#777777',
@Gitsack
Gitsack / main.js
Last active March 10, 2021 20:39
Vue - in-viewport directive (Intersection Observer)
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;
@Gitsack
Gitsack / WSL2->X410
Last active January 4, 2021 17:09
Start Linux GUI apps from WSL2 to X410
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:
### 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: