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 |
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
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
#!/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
fetchAgent : String -> Cmd Msg | |
fetchAgent slug = | |
let | |
query = | |
Query.selection identity | |
|> with | |
(Query.node { id = Api.encodeAgentId slug } | |
(Node.selection (always Agent) | |
[ Node.onAgent agentSelection ] | |
) |
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
35dwABviaHRdroN9xmddyAQGXAgW447RnP |
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
0xAa2C6c29d440Dbeb04D0F50c1735F0C2B0B7e040 |
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
etnkDRXh6RbLEgMwyd47XQLMVj4yRDEYk | |
816o19tjdU3JxMAtqmzPGWbQDZmPCyECB | |
PNzhor36xJwXM2YsV4ubLE2zbjuscFiV |
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
3PwXdGZYCja1XYNH88iDT2SzCkegG9PoTu |
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
0xd7250e8D1123cb876CC91C55613177e78b58c222 |
NewerOlder