Skip to content

Commit 30c094c

Browse files
author
ikrima
committedJan 21, 2022
[site] finish migration obsidian, now single source of truth
1 parent fed54b2 commit 30c094c

16 files changed

+69
-86
lines changed
 

‎content/dev-notes/clojure/clj-overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* Crash course: [https://dev.to/adasomg/10-life-changing-minutes-with-clojure-windows-3ofl](https://dev.to/adasomg/10-life-changing-minutes-with-clojure-windows-3ofl)
66
* Syntax in 15 mins: [https://github.com/shaunlebron/ClojureScript-Syntax-in-15-minutes](https://github.com/shaunlebron/ClojureScript-Syntax-in-15-minutes)
7-
* Brave Clojure: [https://www.braveclojure.com/do-things/](https://www.braveclojure.com/do-things/)
7+
* Brave Clojure: <https://www.braveclojure.com/do-things/>
88
* S-expressions [http://www.buildyourownlisp.com/chapter9_s_expressions](http://www.buildyourownlisp.com/chapter9_s_expressions)
99
* Clojure for DSL: [https://purelyfunctional.tv/courses/domain-specific-languages-in-clojure/](https://purelyfunctional.tv/courses/domain-specific-languages-in-clojure/)
1010
* Rich Hickey talks: [https://github.com/matthiasn/talk-transcripts](https://github.com/matthiasn/talk-transcripts)
@@ -89,7 +89,7 @@ clojure.lang.Keyword
8989

9090
* clojure.tools.analyzer: https://github.com/clojure/tools.analyzer
9191
* https://github.com/stuartsierra/dependency
92-
* Terra (Lua metaprogramming layer over C ): [http://terralang.org/](http://terralang.org/)
92+
* Terra (Lua metaprogramming layer over C ): <http://terralang.org/>
9393
* Gamma (clj > glsl compiler): https://github.com/kovasb/gamma
9494
* https://github.com/thi-ng/shadergraph
9595
* tree shaping

‎content/dev-notes/clojure/dsl-compilers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
* clojure.tools.analyzer: https://github.com/clojure/tools.analyzer
1414
* https://github.com/stuartsierra/dependency
15-
* Terra (Lua metaprogramming layer over C ): [http://terralang.org/](http://terralang.org/)
15+
* Terra (Lua metaprogramming layer over C ): <http://terralang.org/>
1616
* Gamma (clj > glsl compiler): https://github.com/kovasb/gamma
1717
* https://github.com/thi-ng/shadergraph
1818
* tree shaping
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Database Learning Resources
22

33
* [chidb](http://chi.cs.uchicago.edu/chidb/index.html): a book in the vein of crafting interpreters on databases
4-
chidb is a didactic relational database management system (RDBMS) designed for teaching how a RDBMS is built internally, from the data organization in files all the way up to the SQL parser and query optimizer. The design of chidb is based on SQLite, with several simplifying assumptions that make it possible to develop a complete chidb implementation over the course of a quarter or semester. One of the key similarities is that chidb uses a single file to store all its information (database metadata, tables, and indexes). In fact, the chidb file format is a subset of SQLite, meaning that well-formed chidb files will also be well-formed SQLite files (the opposite, though, is not necessarily true).
4+
>
5+
> chidb is a didactic relational database management system (RDBMS) designed for teaching how a RDBMS is built internally, from the data organization in files all the way up to the SQL parser and query optimizer.
6+
> The design of chidb is based on SQLite, with several simplifying assumptions that make it possible to develop a complete chidb implementation over the course of a quarter or semester.
7+
> One of the key similarities is that chidb uses a single file to store all its information (database metadata, tables, and indexes).
8+
> In fact, the chidb file format is a subset of SQLite, meaning that well-formed chidb files will also be well-formed SQLite files (the opposite, though, is not necessarily true).
9+
510
* [Database Internals: A deep-dive into how distributed data systems work](https://www.goodreads.com/book/show/44647144-database-internals)
611
* [The Design and Implementation of Modern Column-Oriented Database Systems](../_assets/design-implementation-modern-column-oriented-databases.pdf)
712
* [Implement Sqlite clone](https://cstack.github.io/db_tutorial/)

‎content/dev-notes/git-commands.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ From [https://stackoverflow.com/questions/5189560/squash-my-last-x-commits-toget
9494

9595
**To move folders into a different folders in git:**
9696
`git filter-branch --tree-filter 'mkdir -p /path/to/tmp; mv * /path/to/tmp; mkdir subdir; mv /path/to/tmp/* subdir/' --tag-name-filter cat --prune-empty -- --all`
97-
[https://gist.github.com/fabiomaggio/ce7ecd7dffd27b32a45325204288efce](https://gist.github.com/fabiomaggio/ce7ecd7dffd27b32a45325204288efce)
97+
<https://gist.github.com/fabiomaggio/ce7ecd7dffd27b32a45325204288efce>
9898

9999
**Rebase against another branch overriding conflicts with your own branch changes:**
100100

@@ -108,7 +108,7 @@ git rebase -Xtheirs branch-b # <- ours: branch-b, theirs: branch-a
108108
* For rebase: -Xtheirs refers to your local current branch that you want to replay ontop of the master branch.
109109
* For merge: -Xours refers to the local branch.
110110

111-
From [https://demisx.github.io/git/rebase/2015/07/02/git-rebase-keep-my-branch-changes.html](https://demisx.github.io/git/rebase/2015/07/02/git-rebase-keep-my-branch-changes.html)
111+
From <https://demisx.github.io/git/rebase/2015/07/02/git-rebase-keep-my-branch-changes.html>
112112

113113
## Git-P4
114114

@@ -119,7 +119,7 @@ From [https://demisx.github.io/git/rebase/2015/07/02/git-rebase-keep-my-branch-c
119119
* When doing git clone, you have to specify to use client spec `git p4 clone //depot/main/BBR/Source . --use-client-spec`
120120

121121
* You can also exlcude paths and have multiple depot paths
122-
* With different directory structures, you can reformat patch files: [https://stackoverflow.com/questions/931882/how-to-apply-a-git-patch-from-one-repository-to-another](https://stackoverflow.com/questions/931882/how-to-apply-a-git-patch-from-one-repository-to-another)
122+
* With different directory structures, you can reformat patch files: <https://stackoverflow.com/questions/931882/how-to-apply-a-git-patch-from-one-repository-to-another>
123123

124124
````sh
125125
$ cat patch_file | git am \
@@ -147,9 +147,9 @@ You can use this to sync from perforce to a git and back (it's brittle)
147147

148148
Links:
149149

150-
* [https://www.paraesthesia.com/archive/2016/10/27/migrating-perforce-to-git-in-windows/](https://www.paraesthesia.com/archive/2016/10/27/migrating-perforce-to-git-in-windows/)
151-
* [https://zzz.buzz/2016/04/30/git-p4-on-windows/](https://zzz.buzz/2016/04/30/git-p4-on-windows/)
152-
* [https://www.atlassian.com/git/tutorials/git-p4](https://www.atlassian.com/git/tutorials/git-p4)
150+
* <https://www.paraesthesia.com/archive/2016/10/27/migrating-perforce-to-git-in-windows/>
151+
* <https://zzz.buzz/2016/04/30/git-p4-on-windows/>
152+
* <https://www.atlassian.com/git/tutorials/git-p4>
153153

154154
### Install instructions
155155

‎content/dev-notes/mlir/mlir-iree-dialect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
[iree-architecture.svg](../_assets/iree-architecture.svg)
5+
![iree-architecture.svg](../_assets/iree-architecture.svg)
66

77
Hierarchy:
88

‎content/dev-notes/mlir/mlir-useful-code-snippets.md

+31-58
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010

1111
* populateDecomposeCallGraphTypesPatterns: get types along callgraph edges; used in bufferize passes
1212
* getEffectsOnSymbol(): override to specify sideeffects on symbols
13-
* CallOpInterfaceLowering: good examples of lowering/conversion
14-
* Function Signature rewriting:
15-
* https://github.com/google/iree/blob/main/iree/compiler/Dialect/Shape/Utils/TypeConversion.h
16-
* https://llvm.discourse.group/t/rewriting-function-calls-and-signatures/1953/4
17-
*
13+
* CallOpInterfaceLowering: good examples of lowering/conversio
14+
* Function Signature rewriting
15+
* <https://github.com/google/iree/blob/main/iree/compiler/Dialect/Shape/Utils/TypeConversion.h>
16+
* <https://llvm.discourse.group/t/rewriting-function-calls-and-signatures/1953/4>
1817

1918
## Graph Algorithms
2019

@@ -25,62 +24,36 @@
2524
* `GraphWriter`: graph emitter
2625
* BreadthFirstIterator.h
2726

28-
---
29-
30-
BarePtrFuncOpConversion
31-
32-
getBranchSuccessorArgument
33-
34-
verifyBranchSuccessorOperands
35-
verifyTypesAlongControlFlowEdges
36-
37-
RegionSuccessor::getSuccessor,isParent,getSuccessorInputs
38-
39-
CallOpOpConversion
40-
41-
struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
42-
43-
---
44-
45-
generateOpgraphAst
46-
generate Node Ast
47-
48-
* Needs to be an object
49-
- contains unoptimized code/syntax tree
50-
- Compile to code instance/funcpointer
51-
- UI binds to unoptimized version
52-
* UI modifies AST
53-
- Generate MLIR
54-
* MLIR parses unoptimized version
55-
* MLIR spits out ast of optimized versoin
56-
57-
````
58-
-Code to ast
59-
-Ast to mlir
60-
-mlir to emitted optimized version
61-
````
62-
63-
---
64-
65-
struct TileAndVectorizeWorkgroups
66-
: public PassWrapper\<TileAndVectorizeWorkgroups, FunctionPass> {
67-
void getDependentDialects(DialectRegistry &registry) const override {
68-
registry.insert\<linalg::LinalgDialect, AffineDialect, scf::SCFDialect,
69-
vector::VectorDialect>();
70-
}
71-
void runOnFunction() override;
72-
};
73-
} // namespace
74-
75-
void TileAndVectorizeWorkgroups::runOnFunction() {
76-
27+
## Misc Code Fragments
28+
29+
````cpp
30+
struct BarePtrFuncOpConversion;
31+
getBranchSuccessorArgument()
32+
verifyBranchSuccessorOperands()
33+
verifyTypesAlongControlFlowEdges()
34+
35+
RegionSuccessor::getSuccessor()
36+
RegionSuccessor::isParent()
37+
RegionSuccessor::getSuccessorInputs()
38+
39+
struct CallOpSignatureConversion;
40+
41+
struct TileAndVectorizeWorkgroups : public PassWrapper<TileAndVectorizeWorkgroups, FunctionPass> {
42+
void getDependentDialects(DialectRegistry &registry) const override {
43+
registry.insert<linalg::LinalgDialect, AffineDialect, scf::SCFDialect,
44+
vector::VectorDialect>();
45+
}
46+
};
47+
7748
/// Distribute linalg ops among iree.workgroup logical threads.
78-
std::unique_ptr\<OperationPass<ModuleOp>\> createLinalgTileAndDistributePass();
49+
std::unique_ptr<OperationPass<ModuleOp>> createLinalgTileAndDistributePass();
7950

8051
/// Vectorize linalg ops executed in the same iree.workgroup.
8152
std::unique_ptr<FunctionPass> createLinalgTileAndVectorizeWorkgroupsPass();
82-
83-
FuncBufferize
84-
createFuncBufferizePass
53+
54+
55+
mlir::createFuncBufferizePass();
56+
struct FuncBufferize;
8557

8658
Linalgop::DeduplicateInputs
59+
````

‎content/dev-notes/os/file-io-performance.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ The amount of I/O performance improvement that file data caching offers depends
1313

1414
In these situations, caching can be turned off. This is done at the time the file is opened by passingFILE_FLAG_NO_BUFFERING as a value for the dwFlagsAndAttributes parameter of CreateFile. When caching is disabled, all read and write operations directly access the physical disk. However, the file metadata may still be cached. To flush the metadata to disk, use the FlushFileBuffers function.
1515

16-
From [http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx)
16+
From <http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx>
1717

1818
# File Buffering
1919

2020
When opening or creating a file with the CreateFile function, the FILE_FLAG_NO_BUFFERING flag can be specified to disable system caching of data being read from or written to the file. Although this gives complete and direct control over data I/O buffering, in the case of files and similar devices there are data alignment requirements that must be considered.
2121

2222
In a simple example, the application would open a file for write access with the FILE_FLAG_NO_BUFFERING flag and then perform a call to the WriteFile function using a data buffer defined within the application. This local buffer is, in these circumstances, effectively the only file buffer that exists for this operation. Because of physical disk layout, file system storage layout, and system-level file pointer position tracking, this write operation will fail unless the locally-defined data buffers meet certain alignment criteria, discussed in the following section.
2323

24-
From [http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx)
24+
From <http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx>
2525

2626
# File read performance
2727

2828
Mmap vs fread http://lemire.me/blog/archives/2012/06/26/which-is-fastest-read-fread-ifstream-or-mmap/
2929

3030
**FILE_FLAG_NO_BUFFERING**
31-
From [http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx)
31+
From <http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx>
3232

33-
[http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx)
34-
[http://stackoverflow.com/questions/236861/how-do-you-determine-the-ideal-buffer-size-when-using-fileinputstream](http://stackoverflow.com/questions/236861/how-do-you-determine-the-ideal-buffer-size-when-using-fileinputstream)
33+
<http://msdn.microsoft.com/en-us/library/windows/desktop/aa364218(v=vs.85).aspx>
34+
<http://stackoverflow.com/questions/236861/how-do-you-determine-the-ideal-buffer-size-when-using-fileinputstream>

‎content/dev-notes/prog-lang-theory/plt-misc-resources.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* [Solving the expression problem in Python with object algebras](http://ponies.io/posts/2015-07-15-solving-the-expression-problem-in-python-object-algebras-and-mypy-static-types.html)
1010
* [Nim Memory Model](http://zevv.nl/nim-memory/)
1111
* Continuations
12-
* http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg03277.html
13-
* http://wingolog.org/archives/2015/07/27/cps-soup
14-
* http://mlton.org/pipermail/mlton/2003-January/023054.html
12+
* <http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg03277.html>
13+
* <http://wingolog.org/archives/2015/07/27/cps-soup>
14+
* <http://mlton.org/pipermail/mlton/2003-January/023054.html>
1515
* [JIT in python](https://csl.name/post/python-jit/)
1616
* Interpreter
17-
https://francisstokes.wordpress.com/2017/08/16/programming-language-from-scratch/
18-
https://github.com/Lel-Language/Lisp-esque-language
17+
<https://francisstokes.wordpress.com/2017/08/16/programming-language-from-scratch/>
18+
<https://github.com/Lel-Language/Lisp-esque-language>
1919
* [Category Theory in 15 minutes](http://chrislambda.github.io/blog/2014/01/30/catamorphisms-in-15-minutes/)

‎content/dev-notes/vcpkg.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Vcpkg Cheatsheet
2+
3+
* update: `git pull && bootstrap-vcpkg.bat`

‎content/dev-notes/visual-studio/hardware-breakpoints.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ A processor breakpoint is triggered when a specific memory location is accessed.
2424
|**w** (write)|Triggered when the processor writes memory at the specified address.|
2525
|**i** (i/o)|Triggered when the I/O port at the specified *Address* is accessed.|
2626

27-
*Reference From [https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/processor-breakpoints---ba-breakpoints-](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/processor-breakpoints---ba-breakpoints-)*
27+
*Reference From <https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/processor-breakpoints---ba-breakpoints->*

‎content/dev-notes/visual-studio/register-filetype-as-hlsl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Windows Registry Editor Version 5.00
1818
"HLSLFile"=dword:00000001
1919
````
2020

21-
From [http://forum.unity3d.com/threads/vs-2012-and-2013-cg-syntax-highlighting-no-plugins-required.255209/](http://forum.unity3d.com/threads/vs-2012-and-2013-cg-syntax-highlighting-no-plugins-required.255209/)
21+
From <http://forum.unity3d.com/threads/vs-2012-and-2013-cg-syntax-highlighting-no-plugins-required.255209/>

‎content/dev-notes/visual-studio/rpc-debugger-extension.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Some references:
3434
* [VBScript Primer](http://technet.microsoft.com/en-us/library/ee198896.aspx)
3535
* [VBScript Error Handling](http://technet.microsoft.com/en-us/library/ee692852.aspx)
3636

37-
From [https://github.com/dwilliamson/b/blob/623a4882561c0893e01488730896c6660794e257/Posts/2012-02-07-11-37-23.txt](https://github.com/dwilliamson/b/blob/623a4882561c0893e01488730896c6660794e257/Posts/2012-02-07-11-37-23.txt)
37+
From <https://github.com/dwilliamson/b/blob/623a4882561c0893e01488730896c6660794e257/Posts/2012-02-07-11-37-23.txt>

‎content/dev-notes/windbg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Use windbg.exe to open dump file and use following command:
5757
* Live Kernel Mode Debugging: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/performing-local-kernel-debugging
5858
* System File Checker
5959
* BSOD/Crash Dump/Minidump
60-
* BlueScreenView [http://www.nirsoft.net/utils/blue_screen_view.html](http://www.nirsoft.net/utils/blue_screen_view.html)
60+
* BlueScreenView <http://www.nirsoft.net/utils/blue_screen_view.html>
6161

6262
Resources: https://www.sysnative.com/forums/bsod-kernel-dump-analysis-debugging-information/284-bsod-method-tips.html
6363

‎content/dev-notes/zig/zig-build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Can run programs from build script for convenience
170170
171171
### Link zig library
172172
173-
* Use `LibExeObjStep.addPackage/addPackagePath` with a `Pkg{ .name = "library", .path = "/path/to/the/library"}`.
173+
* Use `LibExeObjStep.addPackage/addPackagePath` with a `Pkg{ .name = "library", .path = "/path/to/the/library"}`
174174
* use `const library = @import("library");` in your root source file
175175
* Set output directory: `foo_lib.setOutputDir(output_path);`
176176
* *note:* this should be done before `foo_lib.setTarget(..)` as that will recompute the full output path

‎sitebuild-docs/obsidian-export.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Obsidian Export
22

33
[obsidian exporter](https://github.com/ikrima/obsidian-export): markdown exporter
4+
45
- Build
56
```batch
67
cd obsidian-export &
@@ -15,12 +16,13 @@
1516
```
1617

1718
[mkdocs-roamlinks-plugin](https://github.com/Jackiexiao/mkdocs-roamlinks-plugin)
19+
1820
- Might be good for reference but not used
1921

2022
## Export from Notion
2123

22-
- Worked better: https://github.com/connertennery/Notion-to-Obsidian-Converter
23-
- https://github.com/visualcurrent/Notion-2-Obsidan
24+
- Worked better: <https://github.com/connertennery/Notion-to-Obsidian-Converter>
25+
- <https://github.com/visualcurrent/Notion-2-Obsidan>
2426

2527
## Export from OneNote
2628

0 commit comments

Comments
 (0)
Please sign in to comment.