Skip to content

Instantly share code, notes, and snippets.

@dom8509
dom8509 / Obsidian Dataview List Siblings and Childs.md
Created October 13, 2022 04:56
List siblings and childs of a file using Dataview. Much like namespaces in Logseq and Roam.
LIST WHERE contains(file.folder, this.file.folder) AND file.name != this.file.name
@dom8509
dom8509 / Obsidian Dataview Tasks.md
Last active September 19, 2023 19:57
List all Task in Obsidian using Dataview
// find dates based on format [[YYYY-MM-DD]]
const findDated = (task) => {
 if( !task.completed ) {
  task.link = " " + "[[" + task.path + "|*]]";  
  task.date="";
  const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/);
  if(found) task.date = moment(found[1]);
  return true;  
 }
@QWxleA
QWxleA / custom-zk.css
Created April 24, 2022 06:19
Logseq Zettelkasten 💚🐔CSS
/* FLEETING NOTES */
span.page-reference[data-ref="fleeting note"]
{ background: var(--ls-primary-background-color);
background-size: 100%;
color: var(--ls-primary-text-color);
padding: 2px 5px 2px 5px;
font-size: 13px;
line-height: 1em;
font-weight: 500;
@pebreo
pebreo / django-jquery-demo.py
Last active April 29, 2020 05:15
jQuery AJAX + Django SIMPLE DEMO
# views.py - django app called ajx
from django.shortcuts import render, get_object_or_404, redirect, HttpResponse, render_to_response, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import authenticate, login
import json
def mygetview(request):
if request.method == 'GET':