This demonstrates one method for creating JavaScript based Anki cards.
Tested on
- [Anki for desktop computers][anki-desktop] version 2.1.13
- [AnkiMobile][anki-mobile] (iOS) version 2.0.48
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# Get the latest version of pushgateway from prometheus.io, then download and extract: | |
$ wget https://github.com/prometheus/pushgateway/releases/download/v0.8.0/pushgateway-0.8.0.linux-amd64.tar.gz | |
$ tar -xvf pushgateway-0.8.0.linux-amd64.tar.gz | |
# Create the pushgateway user: | |
$ useradd --no-create-home --shell /bin/false pushgateway | |
# Move the binary in place and update the permissions to the user that we created: | |
$ cp pushgateway-0.8.0.linux-amd64/pushgateway /usr/local/bin/pushgateway | |
$ chown pushgateway:pushgateway /usr/local/bin/pushgateway |
Obsidian forum thread: https://forum.obsidian.md/t/plugin-for-bullet-threading/37317/22
Add these CSS files in Appearance settings.
Changelog:
{ | |
"choices": [ | |
{ | |
"text": "Generated text goes here." | |
} | |
], | |
"completion": { | |
"model": "gpt-3.5-turbo-instruct", | |
"prompt": "Your input prompt goes here.", | |
"temperature": 0.7, |
{ | |
"created": "11212121", | |
"data": [ | |
{ | |
"url": "https://...." | |
}] | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Draggable Table with Buttons</title> | |
<style> | |
body { | |
color: black; | |
font-size: 25px; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Draggable Table with Buttons</title> | |
<style> | |
body { | |
color: black; |
linters-settings: # 設定のデフォルト値は、https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml で確認できる | |
depguard: # packagesに宣言されているモジュールの取り扱いに関するルール。ブラックリスト形式で使っているので、列挙したものを使うとエラーになる。 | |
list-type: blacklist | |
packages: | |
- golang.org/x/xerrors # go 1.13で必要な機能はすべてerrorsに取り込まれたので使わない | |
- github.com/rs/zerolog # ログ出力用のライブラリはプロジェクト内部に作ったファクトリ関数経由で使うため | |
packages-with-error-message: | |
- golang.org/x/xerrors: "エラー処理は標準のerrorsを使って下さい。スタックトレースが必要な場合のみpkg/errorsを使って下さい" | |
- github.com/rs/zerolog: "ログ出力は example.com/myproject/logger#Newから利用して下さい" | |
dupl: # コードのコピペを検出するルール。 閾値のトークン数を越えるものをエラーにする |