8000 updated posts · geeknerd/geeknerd.github.io@6d8cecc · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6d8cecc

Browse files
8000 committed
updated posts
1 parent 4692b70 commit 6d8cecc

File tree

3 files changed

+104
-22
lines changed

3 files changed

+104
-22
lines changed

_drafts/2018-06-20-machine-learning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ $$p(Y|X)$$: Posterior Probability.
2020
$$p(Y)$$: Prior Probability.
2121
$$p(X|Y)$$: Likelihood.
2222
$$p(X)$$: Evidence. Also the **normalization constant**: sum of the likelihood of X for each class Y.
23-
Building joint probability distributions depends on the number of variables $$N$$ as well as the number of states $$D$$, resulting a complexity of $$O(D^N)$$. Instead we could use fewer parameters by making **unconditional independence** assumptions (rare) or mediate the variable influences through 3rd random variable to achieve **conditional independence**.
23+
Building joint probability distributions depends on the number of variables $$N$$ as well as the number of states $$D$$, resulting a complexity of $$O(D^N)$$. Instead we could use fewer parameters by making **unconditional independence** assumptions (rare) or mediate the variable influences through 3rd random variable to achieve **conditional independence**.

_posts/2018-4-22-vim-tips.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ comments: true
88
pinned: true
99
tags: [Linux]
1010
---
11-
##### Some command mode tips to better focus fingers on the keyboard.
11+
##### Escape Insert Mode without the ESC key
1212
When there is a physical keyboard around, I prefer to use ```ESC``` to get out of insert mode. However, the new Macbook Pro adopts a touchbar with ```ESC``` in it and it is not fun to use under any circumstance. Luckily, it turns out that savior to this tragedy is another combination with one extra keystroke. Believe me, it is definitely worth it for the adaptation curve.
1313
~~~ shell
1414
control + [ # faster way to exit insert mode
@@ -32,4 +32,11 @@ Most often I use *number*+G to jump to a certain line in Vim. However, it is pos
3232
vim file.xx +21
3333
# or
3434
vim file.xx -c ":21"
35-
~~~
35+
~~~
36+
### Vim Package management with Vundle
37+
I'm trying to keep Vim a minalistic development tool but some additional packages would only boost productivity without harming the overall performance of Vim.
38+
#### Vundle
39+
#### YouCompleteMe
40+
It is totally understandable some coders do not fancy auto completion just to stay sharp with their coding ability and habit. One day or another, I imagine a working environment inside an IDE of some sort. I am the other type of programmers who would love to have some degree of help during the coding. [YouCompleteMe](https://valloric.github.io/YouCompleteMe/) is a must-have plugin for me and anyone should try it out just to have fun.
41+
#### Vim Markdown
42+
There are a lot of open-source markdown packages for Vim, I use [plasticboy](https://github.com/plasticboy/vim-markdown) markdown package. So far it works great for all the markdown files.

blog.sublime-workspace

Lines changed: 94 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,31 @@
172172
"buffers":
173173
[
174174
{
175-
"contents": "---\nlayout: post\ntitle: Vim Accumulated Tips\nexcerpt: \"A great list of some of the vim commands that could be really helpful to light-to-heavy Vim users everyday. Navigation and basic commands will not be listed here under the assumptions that they are elementary to survive in a entry-to-high level learning curve.\"\ndate: 2018-04-22\nmodifited: 2018-04-22\ncomments: true\npinned: true\ntags: [Linux]\n---\n##### Some command mode tips to better focus fingers on the keyboard.\nWhen there is a physical keyboard around, I prefer to use ```ESC``` to get out of insert mode. However, the new Macbook Pro adopts a touchbar with ```ESC``` in it and it is not fun to use under any circumstance. Luckily, it turns out that savior to this tragedy is another combination with one extra keystroke. Believe me, it is definitely worth it for the adaptation curve. \n~~~ shell\ncontrol + [ # faster way to exit insert mode\n# not prefered but still works\ncontrol + c # force quit all commands including buffered\n~~~\n##### Search and replace text in selection\nFor example there is a line\n~~~~ shell\nmusic amuse fuse refuse\n~~~~\nTo replace ```us``` with ```az```, the command would be \n~~~ SHELL\n:s/\\%Vus/az/g\n~~~\nThe ```\\%V``` specifies to search and replace in visual mode not entire file.\n#### Jump to a certain line\nMost often I use *number*+G to jump to a certain line in Vim. However, it is possible to jump to a line from file opening, which is most useful when debugging and file and found a breakpoint. There are multiple ways to do it but the simpliest are:\n~~~ shell\n# goto line 21\nvim file.xx +21\n# orhfdskfgfasffddfsafdfd\nvim file.xx -c \":21\"\n~~~",
176175
"file": "_posts/2018-4-22-vim-tips.md",
177-
"file_size": 1615,
178-
"file_write_time": 131737344922369528,
179176
"settings":
180177
{
181-
"buffer_size": 1636,
178+
"buffer_size": 2468,
182179
"line_ending": "Unix"
183180
}
181+
},
182+
{
183+
"file": "_posts/2018-01-11-mac-application.md",
184+
"settings":
185+
{
186+
"buffer_size": 3482,
187+
"encoding": "UTF-8",
188+
"line_ending": "Unix"
189+
}
190+
},
191+
{
192+
"file": "_drafts/2018-06-20-machine-learning.md",
193+
"settings":
194+
{
195+
"buffer_size": 1098,
196+
"encoding": "UTF-8",
197+
"line_ending": "Unix",
198+
"name": "## Hoare logic[^1]"
199+
}
184200
}
185201
],
186202
"build_system": "",
@@ -258,6 +274,10 @@
258274
"last_filter": "",
259275
"selected_items":
260276
[
277+
[
278+
"list",
279+
"Package Control: List Packages"
280+
],
261281
[
262282
"instal",
263283
"Package Control: Install Package"
@@ -266,10 +286,6 @@
266286
"package",
267287
"Package Control: Disable Package"
268288
],
269-
[
270-
"list",
271-
"Package Control: List Packages"
272-
],
273289
[
274290
"lis",
275291
"Permute Lines: Shuffle"
@@ -319,7 +335,7 @@
319335
},
320336
"console":
321337
{
322-
"height": 0.0,
338+
"height": 137.0,
323339
"history":
324340
[
325341
]
@@ -335,13 +351,13 @@
335351
},
336352
"expanded_folders":
337353
[
338-
"/Users/yixia/geeknerd.github.io",
339-
"/Users/yixia/geeknerd.github.io/_posts"
354+
"/Users/yixia/geeknerd.github.io"
340355
],
341356
"file_history":
342357
[
343-
"/Users/yixia/geeknerd.github.io/_posts/2018-4-22-vim-tips.md",
358+
"/Users/yixia/geeknerd.github.io/_posts/2018-06-18-alfred-permission.md",
344359
"/Users/yixia/geeknerd.github.io/_posts/2018-01-09-sublime-text.md",
360+
"/Users/yixia/geeknerd.github.io/_posts/2018-4-22-vim-tips.md",
345361
"/Users/yixia/Downloads/ddd/团子系列/团子系列/毛衣少女/sanjiery_tumblr_com02.jpg",
346362
"/Users/yixia/Documents/python_work/ch7.py",
347363
"/Users/yixia/Documents/python_work/ch5.py",
@@ -466,8 +482,7 @@
466482
"/Users/yixia/Documents/Downloads/Criminal.Minds.S03.DVDRip.XviD-MiXED/criminal.minds.s03e14.dvdrip.xvid.repack-orpheus.chs_en.srt",
467483
"/Users/yixia/Documents/2018_Spring/155E/CSCE155-C-Lab05/physicsCalc.c",
468484
"/Users/yixia/Documents/2018_Spring/155E/CSCE155-C-Lab05/sine.c",
469-
"/Users/yixia/Documents/2018_Spring/155E/CSCE155-C-Lab06/florist.c",
470-
"/Users/yixia/Documents/2018_Spring/155E/CSCE155-C-Lab12/drive.c"
485+
"/Users/yixia/Documents/2018_Spring/155E/CSCE155-C-Lab06/florist.c"
471486
],
472487
"find":
473488
{
@@ -502,7 +517,7 @@
502517
"groups":
503518
[
504519
{
505-
"selected": 0,
520+
"selected": 2,
506521
"sheets":
507522
[
508523
{
@@ -511,15 +526,15 @@
511526
"semi_transient": false,
512527
"settings":
513528
{
514-
"buffer_size": 1636,
529+
"buffer_size": 2468,
515530
"regions":
516531
{
517532
},
518533
"selection":
519534
[
520535
[
521-
1065,
522-
1065
536+
1100,
537+
1100
523538
]
524539
],
525540
"settings":
@@ -532,6 +547,66 @@
532547
"translation.y": 0.0,
533548
"zoom_level": 1.0
534549
},
550+
"stack_index": 2,
551+
"type": "text"
552+
},
553+
{
554+
"buffer": 1,
555+
"file": "_posts/2018-01-11-mac-application.md",
556+
"semi_transient": false,
557+
"settings":
558+
{
559+
"buffer_size": 3482,
560+
"regions":
561+
{
562+
},
563+
"selection":
564+
[
565+
[
566+
2308,
567+
2308
568+
]
569+
],
570+
"settings":
571+
{
572+
"is_init_dirty_state": false,
573+
"origin_encoding": "ASCII",
574+
"syntax": "Packages/MarkdownEditing/Markdown.sublime-syntax"
575+
},
576+
"translation.x": 0.0,
577+
"translation.y": 343.0,
578+
"zoom_level": 1.0
579+
},
580+
"stack_index": 1,
581+
"type": "text"
582+
},
583+
{
584+
"buffer": 2,
585+
"file": "_drafts/2018-06-20-machine-learning.md",
586+
"semi_transient": false,
587+
"settings":
588+
{
589+
"buffer_size": 1098,
590+
"regions":
591+
{
592+
},
593+
"selection":
594+
[
595+
[
596+
184,
597+
184
598+
]
599+
],
600+
"settings":
601+
{
602+
"is_init_dirty_state": false,
603+
"origin_encoding": "UTF-8",
604+
"syntax": "Packages/MarkdownEditing/Markdown.sublime-syntax"
605+
},
606+
"translation.x": 0.0,
607+
"translation.y": 0.0,
608+
"zoom_level": 1.0
609+
},
535610
"stack_index": 0,
536611
"type": "text"
537612
}
@@ -627,7 +702,7 @@
627702
"show_open_files": true,
628703
"show_tabs": true,
629704
"side_bar_visible": true,
630-
"side_bar_width": 253.0,
705+
"side_bar_width": 262.0,
631706
"status_bar_visible": true,
632707
"template_settings":
633708
{

0 commit comments

Comments
 (0)
0