This file contains hidden or 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
import sanityClient from '@sanity/client'; | |
type Client = { | |
projectId: string, | |
dataset: string, | |
token: string, | |
useCdn: boolean | |
} | |
// create instance of sanityClient |
This file contains hidden or 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 data = await getGithub() | |
const widget = createWidget() | |
Script.setWidget(widget) | |
Script.complete() | |
function createWidget(){ | |
const w = new ListWidget() | |
w.backgroundColor = new Color('#1f1f1f') | |
w.useDefaultPadding() |
This file contains hidden or 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
export PS1='\[\e[0;97m\](=^_^=)\[\e[m\] \[\e[0;38;5;194m\]\d\[\e[0m\]:\[\e[m\] \[\e[0m\]\@\[\e[0m\]:\[\e[m\] \[\e[0;38;5;222m\]\w\[\e[m\] \[\e[0m\](\[\e[0;3;38;5;224m\]$(git branch 2>/dev/null | grep '"'"'^*'"'"' | colrm 1 2)\[\e[0m\])\[\e[m\] \[\e[0m\]#\[\e[0m\]:\[\e[m\] \[\e0' |
This file contains hidden or 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
// note: to use this function, replace '.id' in line 4 | |
// with the property youre using to match children | |
const mergeById = (a1: Array<object>, a2: Array<object>) => | |
a1.map(itm: object | null => ({ | |
...a2.find(e: object | null => (e.id === itm.id)), | |
...itm | |
})) |
This file contains hidden or 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
window.addEventListener("DOMContentLoaded", function() { | |
const targetNode = document.getElementById('rpressModal') | |
const config = { attributes: true, childList: true, subtree: true }; | |
const removeFirst = (e) => { | |
e.selectedIndex = "2"; | |
} | |
const callback = function(mutationsList, observer) { |
This file contains hidden or 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
fragment FullType on __Type { | |
kind | |
name | |
fields(includeDeprecated: true) { | |
name | |
args { | |
...InputValue | |
} | |
type { | |
...TypeRef |
This file contains hidden or 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
body { | |
--f-s-xl: clamp(3rem, 12vw + 1rem, 5rem); | |
--f-s-lg: 1.5rem; | |
--f-s-md: 1.25rem; | |
--f-s-sm: 1rem; | |
} | |
@media screen and (min-width: 40em){ | |
body { | |
--f-s-lg: 2rem; |
This file contains hidden or 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
#!/usr/bin/env bash | |
if [ "$1" = "--local" ]; then | |
echo "Building source..." | |
make build | |
sudo cp build/standup /usr/local/bin | |
echo "Installed local version of standup!" | |
exit 0 | |
fi |