Skip to content

Instantly share code, notes, and snippets.

View ssbb's full-sized avatar
🏠
Working from home

Sviatoslav Bulbakha ssbb

🏠
Working from home
View GitHub Profile
! 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
@ssbb
ssbb / MyComponent.tsx
Last active November 5, 2022 21:06
Next.js graphql-request example
import { cache } from 'react';
import { graphqlClient } from "lib/graphql-client";
export const myFetch = cache(async () => {
const { myDocument } = await graphqlClient().request(myDocument, {});
});
#!/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')
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 ]
)
35dwABviaHRdroN9xmddyAQGXAgW447RnP
0xAa2C6c29d440Dbeb04D0F50c1735F0C2B0B7e040
etnkDRXh6RbLEgMwyd47XQLMVj4yRDEYk
816o19tjdU3JxMAtqmzPGWbQDZmPCyECB
PNzhor36xJwXM2YsV4ubLE2zbjuscFiV
3PwXdGZYCja1XYNH88iDT2SzCkegG9PoTu
0xd7250e8D1123cb876CC91C55613177e78b58c222
0x4F386713aEF0340A016bc1aEE0B703b5A4d40dA5