I hereby claim:
- I am djyde on github.
- I am randylu (https://keybase.io/randylu) on keybase.
- I have a public key ASB3NHl259pgMnRkOGrRa_5iZA-Ei65qXCFCQ7qj_7HAaAo
To claim this, I am signing this object:
# Generated by Powerlevel10k configuration wizard on 2023-03-06 at 09:04 UTC. | |
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 16558. | |
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark, | |
# 24h time, angled separators, sharp heads, flat tails, 2 lines, solid, right frame, | |
# sparse, few icons, concise, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
async function getBooks(category) { | |
return await (await fetch(`/api/books/?category=${category}`)).json() | |
} | |
async function deleteBook(id) { | |
return await (await fetch(`/api/user_delete_book`, { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', | |
'X-CSRFToken': Cookies.get('csrftoken') |
I hereby claim:
To claim this, I am signing this object:
test("merge - scene#1", async () => { | |
let cloud = new Graph(); | |
// initial state on cloud | |
const v1 = cloud.addVertex("v1"); | |
const v2 = cloud.addVertex("v2"); | |
const v3 = cloud.addVertex("v3"); | |
const v4 = cloud.addVertex("v4"); | |
// sync from cloud |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
// get current document title and url and transform to Roam | |
const copyToClipboard = str => { | |
const el = document.createElement('textarea'); | |
el.value = str; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); | |
el.select(); |
mkdir dbdata