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 python | |
import json | |
import os | |
import re | |
BASE_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__))) | |
STATIC_DIR = os.path.join(BASE_DIR, '..', 'static') | |
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 { cache } from 'react'; | |
import { graphqlClient } from "lib/graphql-client"; | |
export const myFetch = cache(async () => { | |
const { myDocument } = await graphqlClient().request(myDocument, {}); | |
}); |
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
! Theme: modus-vivendi-tritanopia | |
! Description: XTerm port of modus-vivendi-tritanopia (Modus themes for Emacs) | |
! Author: Protesilaos Stavrou, <https://protesilaos.com> | |
xterm*background: #000000 | |
xterm*foreground: #ffffff | |
xterm*color0: #000000 | |
xterm*color1: #ff5f59 | |
xterm*color2: #44bc44 | |
xterm*color3: #cabf00 | |
xterm*color4: #2fafff |
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
defmodule MyApp.Snippet do | |
defmacro defsnippet(name, do: snippet) do | |
quote do | |
snippets = Module.get_attribute(__MODULE__, :snippets) || [] | |
snippets = [{unquote(name), unquote(snippet)} | snippets] | |
Module.put_attribute(__MODULE__, :snippets, snippets) | |
end | |
end |
OlderNewer