- What are "Queries" in Logseq?
- Queries are for asking questions from your knowledge base and the outside world.
- How to write simple queries?
- By using
{{query }}
, the format is something like this:
{{query Something you're looking for}}
- By using
- How to write simple queries?
- Queries are for asking questions from your knowledge base and the outside world.
- **Query Operators **
These three operators can be applied around any query filters.
- and
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
// Performance tests such as Google Lighthouse often complain about below the fold images while lazy loading | |
// techniques may introduce a flash effect for images on bigger screens | |
// This snippet shows a solution to instantly display images as if loaded using src="" while maintaining | |
// the lazy loading benefit on smaller screens. | |
// Tip: a second and potentially better technique is to rewrite lazy loaded images to regular src="" images in a Service Worker. | |
// this snippet depends on in-view (5kb) | |
// @link https://github.com/camwiegert/in-view/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: make sure to install: | |
pip install Pillow google-genai loguru | |
""" | |
from google import genai | |
from google.genai import types | |
from PIL import Image | |
from io import BytesIO | |
import os |
OlderNewer