Skip to content

Instantly share code, notes, and snippets.

@doomuch
doomuch / Readme.md
Last active April 10, 2023 09:33
Hide Toggles for Tana.inc. To activate, go to arc://boost/new. Choose custom add the content of these two files.

Boost for Arc ✧ Toggle heading in tabs view

(you can use it in other browsers too with plugins)

Explanation: Default spacing really annoys me. However, if you just hide it, you wouldn't be able to access important functions of a node

Solution: Default state is hidden. To open it, you just need to click on the active node tab. important! once you clicked, the state is changed for all tabs. to collapse, click on a tab once more

Old: image New:

# STEP 1: Load
# Load documents using LangChain's DocumentLoaders
# This is from https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/csv.html
from langchain.document_loaders.csv_loader import CSVLoader
loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv')
data = loader.load()
@mi5ty
mi5ty / tana.css
Last active November 12, 2023 14:58
Tana Nodes CSS Snippets
/* custom font */
html {
--colorEditorText: var(--colorGray700);
font-family: Chivo;
font-weight: 300;
-webkit-font-smoothing: antialiased;
}
html.isDarkMode {
--colorEditorText: var(--colorGray300);
@mi5ty
mi5ty / tananodes_cheatsheet.md
Last active December 31, 2023 01:02
Tana Cheat Sheet

%%tana%%

  • Cheat Sheet
    • ✨ Tana Expressions
      • Title #tana-expression
        • Description:: A title expression composes values from the node into a title.
        • Attributes:: Search for Tana "Title" Attributes
      • Search #tana-expression
        • Description:: The search expression consists of a flat list of match-clauses that must be true for a node to match the search.
        • Attributes:: Search for Search Attributes + Search for Search Field Values
  • 🧩 Tana Attributes
@mirfan899
mirfan899 / mic_client.py
Created April 29, 2019 16:59 — forked from fopina/mic_client.py
microphone streaming with pyAudio
#!/usr/bin/env python
import pyaudio
import socket
import sys
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
CHUNK = 4096