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 jthomaschewski on github. | |
* I am janek (https://keybase.io/janek) on keybase. | |
* I have a public key whose fingerprint is 8374 414F 9366 0571 8B19 72F0 03FD 6A82 57CD 72C2 | |
To claim this, I am signing this object: |
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
// check if browser/os is set to dark mode | |
function prefersDark() { | |
return window.matchMedia('(prefers-color-scheme: dark)').matches | |
} | |
// listen for dark mode change in browser/os: | |
const queryDark = window.matchMedia('(prefers-color-scheme: dark)') | |
queryDark.addListener(mediaQuery => { | |
const prefersDark = mediaQuery.matches | |
if (prefersDark) { |
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
# Scalar directives | |
directive @scalar(class: String!) on SCALAR | |
# ENUM directives | |
directive @enum(value: ID!) on ENUM_VALUE | |
# Union directives | |
directive @union(resolver: String!) on UNION |
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
CFLAGS=$(shell pkg-config --cflags libmutter-2) -Wl,-rpath,/usr/lib/mutter | |
LDLIBS=$(shell pkg-config --libs libmutter-2) | |
all: main |