Compare commits

..

10 commits

Author SHA1 Message Date
juan 420640d449
obsidian update, ready to migrate to logseq 2023-03-26 16:17:21 +08:00
juan 4a863dcda6
Update stuff 2023-03-26 15:18:04 +08:00
juan a24806d71d vault backup: 2022-10-28 17:12:15 2022-10-28 17:12:15 +08:00
juan 2269bdebae vault backup: 2022-10-25 20:43:45 2022-10-25 20:43:45 +08:00
juan 4d409a3892 vault backup: 2022-10-22 18:59:09 2022-10-22 18:59:09 +08:00
juan 9e3b45d83f vault backup: 2022-09-29 16:00:03 2022-09-29 16:00:04 +08:00
juan 16bf361f18 vault backup: 2022-09-21 14:49:51 2022-09-21 14:49:51 +08:00
juan 2a1004a7c7 vault backup: 2022-09-21 14:35:34 2022-09-21 14:35:34 +08:00
juan 8aa7a6d3bb vault backup: 2022-09-21 14:11:12 2022-09-21 14:11:12 +08:00
juan 0a26a405cb vault backup: 2022-09-21 14:05:57 2022-09-21 14:05:57 +08:00
23 changed files with 29503 additions and 6643 deletions

View file

@ -1,10 +1,11 @@
{
"theme": "moonstone",
"translucency": true,
"cssTheme": "Prism",
"cssTheme": "Shimmering Focus",
"interfaceFontFamily": "IBM Plex Sans",
"textFontFamily": "IBM Plex Mono,monospace",
"monospaceFontFamily": "IBM Plex Mono",
"baseFontSize": 19,
"enabledCssSnippets": []
"enabledCssSnippets": [],
"accentColor": ""
}

29
.obsidian/core-plugins-migration.json vendored Normal file
View file

@ -0,0 +1,29 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"outgoing-link": true,
"tag-pane": true,
"page-preview": true,
"daily-notes": false,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"starred": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": true,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": false,
"publish": false,
"sync": false,
"canvas": true
}

View file

@ -20,5 +20,8 @@
"basePath": "",
"differentIntervalCommitAndPush": true,
"changedFilesInStatusBar": true,
"username": ""
"username": "",
"showedMobileNotice": true,
"refreshSourceControlTimer": 7000,
"showBranchStatusBar": true
}

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
{
"id": "obsidian-git",
"name": "Obsidian Git",
"description": "Backup your vault with git.",
"isDesktopOnly": true,
"description": "Backup your vault with Git.",
"isDesktopOnly": false,
"js": "main.js",
"version": "1.31.0"
"version": "2.6.0"
}

View file

@ -1,465 +1,473 @@
@keyframes loading {
0% {
transform: rotate(0deg);
}
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
100% {
transform: rotate(360deg);
}
}
.workspace-leaf-content[data-type='git-view'] .view-content {
padding: 0;
}
.loading>svg {
animation: 2s linear infinite loading;
transform-origin: 50% 50%;
display: inline-block;
animation: 2s linear infinite loading;
transform-origin: 50% 50%;
display: inline-block;
}
.obsidian-git-center {
margin: auto;
width: 50%;
margin: auto;
width: 50%;
}
.obsidian-git-textarea {
display: block;
margin-left: auto;
margin-right: auto;
display: block;
margin-left: auto;
margin-right: auto;
}
.obsidian-git-center-button {
display: block;
margin: 20px auto;
display: block;
margin: 20px auto;
}
.tooltip.mod-left {
overflow-wrap: break-word;
overflow-wrap: break-word;
}
.tooltip.mod-right {
overflow-wrap: break-word;
overflow-wrap: break-word;
}
.obsidian-git-shortcuts {
margin: 10px;
margin: 10px;
}
.diff-err {
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.diff-err-sign {
font-size: 2em;
font-size: 2em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
display: none;
display: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
text-align: left;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
background-color: var(--background-primary);
border-bottom: 1px solid var(--interactive-accent);
font-family: var(--font-monospace);
height: 35px;
padding: 5px 10px;
background-color: var(--background-primary);
border-bottom: 1px solid var(--interactive-accent);
font-family: var(--font-monospace);
height: 35px;
padding: 5px 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
font-size: 14px;
margin-left: auto;
font-size: 14px;
margin-left: auto;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
border: 1px solid #b4e2b4;
border-radius: 5px 0 0 5px;
color: #399839;
padding: 2px;
text-align: right;
vertical-align: middle;
border: 1px solid #b4e2b4;
border-radius: 5px 0 0 5px;
color: #399839;
padding: 2px;
text-align: right;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
border: 1px solid #e9aeae;
border-radius: 0 5px 5px 0;
color: #c33;
margin-left: 1px;
padding: 2px;
text-align: left;
vertical-align: middle;
border: 1px solid #e9aeae;
border-radius: 0 5px 5px 0;
color: #c33;
margin-left: 1px;
padding: 2px;
text-align: left;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 15px;
width: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 15px;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
margin-bottom: 1em;
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
margin-bottom: 1em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
-webkit-box-pack: end;
-ms-flex-pack: end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
cursor: pointer;
display: none;
font-size: 12px;
justify-content: flex-end;
padding: 4px 8px;
-webkit-box-pack: end;
-ms-flex-pack: end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
cursor: pointer;
display: none;
font-size: 12px;
justify-content: flex-end;
padding: 4px 8px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
background-color: #c8e1ff;
background-color: #c8e1ff;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
margin: 0 4px 0 0;
margin: 0 4px 0 0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
border-collapse: collapse;
font-family: Menlo, Consolas, monospace;
font-size: 13px;
width: 100%;
border-collapse: collapse;
font-family: Menlo, Consolas, monospace;
font-size: 13px;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
width: 100%;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
overflow-y: hidden;
overflow-y: hidden;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
display: inline-block;
margin-bottom: -8px;
margin-right: -4px;
overflow-x: scroll;
overflow-y: hidden;
width: 50%;
display: inline-block;
margin-bottom: -8px;
margin-right: -4px;
overflow-x: scroll;
overflow-y: hidden;
width: 50%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
padding: 0 8em;
padding: 0 8em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: nowrap;
width: 100%;
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: nowrap;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
padding: 0 4.5em;
padding: 0 4.5em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
word-wrap: normal;
background: none;
display: inline-block;
padding: 0;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
vertical-align: middle;
white-space: pre;
width: 100%;
word-wrap: normal;
background: none;
display: inline-block;
padding: 0;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
vertical-align: middle;
white-space: pre;
width: 100%;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del {
background-color: #ffb6ba;
background-color: #ffb6ba;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del {
background-color: #8d232881;
background-color: #8d232881;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
border-radius: 0.2em;
display: inline-block;
margin-top: -1px;
text-decoration: none;
vertical-align: middle;
border-radius: 0.2em;
display: inline-block;
margin-top: -1px;
text-decoration: none;
vertical-align: middle;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
background-color: #97f295;
text-align: left;
background-color: #97f295;
text-align: left;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
background-color: #1d921996;
text-align: left;
background-color: #1d921996;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix {
word-wrap: normal;
background: none;
display: inline;
padding: 0;
white-space: pre;
word-wrap: normal;
background: none;
display: inline;
padding: 0;
white-space: pre;
}
.workspace-leaf-content[data-type="diff-view"] .line-num1 {
float: left;
float: left;
}
.workspace-leaf-content[data-type="diff-view"] .line-num1,
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
padding: 0 0.5em;
text-overflow: ellipsis;
width: 3.5em;
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
padding: 0 0.5em;
text-overflow: ellipsis;
width: 3.5em;
}
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
float: right;
float: right;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
position: absolute;
text-align: right;
width: 7.5em;
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
position: absolute;
text-align: right;
width: 7.5em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
content: "\200b";
content: "\200b";
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
overflow: hidden;
padding: 0 0.5em;
position: absolute;
text-align: right;
text-overflow: ellipsis;
width: 4em;
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
overflow: hidden;
padding: 0 0.5em;
position: absolute;
text-align: right;
text-overflow: ellipsis;
width: 4em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
position: relative;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
content: "\200b";
content: "\200b";
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
direction: rtl;
direction: rtl;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #fee8e9;
border-color: #e9aeae;
background-color: #fee8e9;
border-color: #e9aeae;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: #dfd;
border-color: #b4e2b4;
background-color: #dfd;
border-color: #b4e2b4;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #521b1d83;
border-color: #691d1d73;
background-color: #521b1d83;
border-color: #691d1d73;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: rgba(30, 71, 30, 0.5);
border-color: #13501381;
background-color: rgba(30, 71, 30, 0.5);
border-color: #13501381;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-info {
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
color: var(--text-normal);
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
color: var(--text-normal);
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change {
background-color: #fdf2d0;
background-color: #fdf2d0;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change {
background-color: #55492480;
background-color: #55492480;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change {
background-color: #ded;
background-color: #ded;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change {
background-color: rgba(37, 78, 37, 0.418);
background-color: rgba(37, 78, 37, 0.418);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper {
margin-bottom: 10px;
margin-bottom: 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a {
color: #3572b0;
text-decoration: none;
color: #3572b0;
text-decoration: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a:visited {
color: #3572b0;
color: #3572b0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-header {
text-align: left;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-title {
font-weight: 700;
font-weight: 700;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-line {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: left;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
display: block;
list-style: none;
margin: 0;
padding: 0;
display: block;
list-style: none;
margin: 0;
padding: 0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li {
border-bottom: 1px solid var(--background-modifier-border);
margin: 0;
padding: 5px 10px;
border-bottom: 1px solid var(--background-modifier-border);
margin: 0;
padding: 5px 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li:last-child {
border-bottom: none;
border-bottom: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
cursor: pointer;
display: none;
font-size: 10px;
cursor: pointer;
display: none;
font-size: 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-icon {
fill: currentColor;
margin-right: 10px;
vertical-align: middle;
fill: currentColor;
margin-right: 10px;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
color: #c33;
color: #c33;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-added {
color: #399839;
color: #399839;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-changed {
color: #d0b44c;
color: #d0b44c;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-moved {
color: #3572b0;
color: #3572b0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-tag {
background-color: var(--background-primary);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 10px;
margin-left: 5px;
padding: 0 2px;
background-color: var(--background-primary);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 10px;
margin-left: 5px;
padding: 0 2px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
border: 2px solid #c33;
border: 2px solid #c33;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
border: 1px solid #399839;
border: 1px solid #399839;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
border: 1px solid #d0b44c;
border: 1px solid #d0b44c;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
border: 1px solid #3572b0;
border: 1px solid #3572b0;
}

View file

@ -3,11 +3,7 @@
"obsidian-prism-theme@@light-accent-color-preset": "pt-accent-color-green-lt",
"obsidian-prism-theme@@color-schemes-dt": "pt-color-scheme-indigo-dt",
"obsidian-prism-theme@@pt-disable-blur": true,
"obsidian-prism-theme@@pt-disable-animations": true,
"obsidian-prism-theme@@pt-disable-custom-icons": false,
"obsidian-prism-theme@@pt-hide-view-header": false,
"obsidian-prism-theme@@accent-style-dt": "pt-accent-style-borderandfilled-dt",
"obsidian-prism-theme@@accent-style-lt": "pt-accent-style-borderandfilled-lt",
"obsidian-prism-theme@@background-type-lt": "pt-background-default-lt",
"obsidian-prism-theme@@light-mark-highlight-style": "pt-highlight-style-filled-lt"
}

View file

@ -3861,7 +3861,14 @@ const tr = {};
const uk = {};
const zh = {};
const zh = {
"Default:": "默认:",
"Error:": "错误:",
"missing default light value, or value is not in a valid color format": "缺少默认的浅色模式色值,或该色值没有采用一个有效的颜色格式",
"missing default dark value, or value is not in a valid color format": "缺少默认的深色模式色值,或该色值没有采用一个有效的颜色格式",
"missing default value, or value is not in a valid color format": "缺少默认色值,或该色值没有采用一个有效的颜色格式",
"missing default value": "缺少默认色值",
};
const zhTw = {};

View file

@ -1,7 +1,7 @@
{
"id": "obsidian-style-settings",
"name": "Style Settings",
"version": "0.4.11",
"version": "0.4.12",
"minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers",

7
.obsidian/themes/Prism/manifest.json vendored Normal file
View file

@ -0,0 +1,7 @@
{
"name": "Prism",
"version": "3.0.0-beta.10",
"minAppVersion": "0.16.0",
"author": "Damian Korcz",
"authorUrl": "https://github.com/damiankorcz"
}

6934
.obsidian/themes/Prism/theme.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,7 @@
{
"name": "Shimmering Focus",
"version": "3.179",
"minAppVersion": "0.16.0",
"author": "pseudometa",
"authorUrl": "https://github.com/chrisgrieser/shimmering-focus"
}

File diff suppressed because one or more lines are too long

185
.obsidian/workspace.json vendored Normal file
View file

@ -0,0 +1,185 @@
{
"main": {
"id": "8e9accceb03b8cbb",
"type": "split",
"children": [
{
"id": "84346e9cb4897289",
"type": "tabs",
"children": [
{
"id": "734cb4b36b9fd11f",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Wiki/Ideas.md",
"mode": "preview",
"backlinks": false,
"source": true
}
}
},
{
"id": "d964937eb85b8dd3",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Wiki/pages/Geph TUI.md",
"mode": "source",
"backlinks": false,
"source": true
}
}
}
],
"currentTab": 1
}
],
"direction": "vertical"
},
"left": {
"id": "8f339aba13fc7b34",
"type": "split",
"children": [
{
"id": "181b0904a5ea9093",
"type": "tabs",
"dimension": 80.92443140132062,
"children": [
{
"id": "dc7b766adde71133",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "byCreatedTime"
}
}
},
{
"id": "9fea4d6a3fb7b065",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "bfs",
"matchingCase": false,
"explainSearch": false,
"collapseAll": true,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
}
]
},
{
"id": "67a5b9b7405b0aab",
"type": "tabs",
"dimension": 19.075568598679386,
"children": [
{
"id": "433ee2e054563ec8",
"type": "leaf",
"state": {
"type": "starred",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 471
},
"right": {
"id": "84d48f88a06a5d05",
"type": "split",
"children": [
{
"id": "600e2282db7d13db",
"type": "tabs",
"dimension": 50.03668378576669,
"children": [
{
"id": "b7747330b7aae8d3",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "Wiki/pages/Geph TUI.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": false
}
}
},
{
"id": "9519bbe1baa8be43",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "Wiki/pages/Geph TUI.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "bad3fb60ee1eaeb0",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
}
]
},
{
"id": "5904586ead812fd4",
"type": "tabs",
"dimension": 49.96331621423331,
"children": [
{
"id": "08480958817d433e",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "Wiki/pages/Geph TUI.md"
}
}
}
]
}
],
"direction": "horizontal",
"width": 419
},
"ribbon": {
"mostRecentAction": ""
},
"active": "d964937eb85b8dd3",
"lastOpenFiles": [
"Wiki/Ideas.md",
"Wiki/Notes for CS.md",
"Untitled.md",
"OJ notes/pages/Leetcode Binary-Tree-Level-Order-Traversal.md",
"OJ notes/pages/Breadth First Search.md",
"OJ notes/OJ-index.md",
"Index.md",
"OJ notes/pages/Elementary Math Problems.md",
"Wiki/pages/Gentoo log parser.md",
"Wiki/Wiki-Index.md"
]
}

View file

@ -12,7 +12,7 @@
>
> ##### Difficulty:
>
> #CS*analysis #difficulty*
> #CS_analysis #difficulty_easy
>
> ##### Additional tags:

View file

@ -82,6 +82,9 @@ I tried with DFS, but
#### BFS
> [!tip]
> Search from 0 instead of 1, can make it easier.
Start searching from 0s, because the search direction matters.
pseudo code:

View file

@ -20,7 +20,7 @@
>
> ##### Revisions:
>
> N/A
> 2022-09-21
##### Related topics:

View file

@ -16,7 +16,7 @@
>
> ##### Revisions:
>
> N/A
> 2022-09-21
##### Related topics:
@ -110,3 +110,34 @@ public:
}
};
```
Alternative solution using private values
```cpp
class Solution {
vector<vector<int>> ans;
vector<int> combs = {};
int N, K;
void backtrack(int cur) {
if (combs.size() == K) {
// we reached the end, should push to the answer array
ans.push_back(combs);
return;
} else if (cur <= N) {
combs.push_back(cur);
backtrack(cur + 1);
combs.pop_back();
backtrack(cur + 1);
}
}
public:
vector<vector<int>> combine(int n, int k) {
N = n;
K = k;
backtrack(1);
return ans;
}
};
```

View file

@ -16,13 +16,13 @@
>
> ##### Revisions:
>
> N/A
> 2022-09-21
##### Related topics:
##### Links:
- [Link to problem](https://leetcode.com/problems/implement-queue-using-stacks/submissions/)
- [Link to problem](https://leetcode.com/problems/implement-queue-using-stacks/)
---
@ -52,15 +52,19 @@ Implement the `MyQueue` class:
```
**Output**
```
[null, null, null, 1, 1, false]
```
**Explanation**
```
MyQueue myQueue = new MyQueue();
myQueue.push(1); // queue is: [1]
myQueue.push(2); // queue is: [1, 2] (leftmost is front of the queue)
myQueue.peek(); // return 1
myQueue.pop(); // return 1, queue is [2]
myQueue.empty(); // return false
```
#### Constraints

View file

@ -20,7 +20,7 @@
>
> ##### Revisions:
>
> N/A
> 2022-09-21
##### Links:

3
Wiki/Ideas.md Normal file
View file

@ -0,0 +1,3 @@
```query
tag:#idea
```

View file

@ -0,0 +1,10 @@
# Glop An genlop alternative
written in rust / cpp
#idea
## What does it do?
- parse gentoo log, summary for updated packages
- estimate build times based on past achives
- estimate package update time `se -atvuDN @world`

2
Wiki/pages/Geph TUI.md Normal file
View file

@ -0,0 +1,2 @@
Geph CLI and GUI sucks, let's make a TUI!
#idea