ih4cku / blog Goto Github PK
View Code? Open in Web Editor NEWdeprecated, Git issues are great for writing blogs :)
deprecated, Git issues are great for writing blogs :)
Errror message: RuntimeError: Can't jump to definition
Basically, I want to use vim
to write my thesis. And I want to have features below which are commonly needed when writing code:
So, I choose to use vimtex
plugin and qpdfview
as the pdf viewer.
The forward/backward search feature depends on the vim client/server mode. So, I add a alias to create a vim server when start writing.
# in ~/.bashrc
alias vimtex='vim --servername LATEX'
# in qpdfview: Edit>Settings>Behavior>Source editor
vim --servername LATEX --remote-silent +%2<CR> %1
Build options:
let g:vimtex_latexmk_options='-xelatex -verbose -file-line-error -synctex=1 -interaction=nonstopmode'
Set the viewer:
if has("win32")
let g:vimtex_view_general_viewer='SumatraPDF'
let g:vimtex_view_general_options='-reuse-instance -forward-search @tex @line @pdf'
let g:vimtex_view_general_options_latexmk='-reuse-instance'
elseif has("unix")
let g:vimtex_view_general_viewer='qpdfview'
let g:vimtex_view_general_options='--unique @pdf\#src:@tex:@line:@col'
let g:vimtex_view_general_options_latexmk='--unique'
endif
Forward call after success building.
let g:vimtex_view_general_callback = 'ViewerCallback'
function! ViewerCallback(status) dict
if a:status
VimtexView
endif
endfunction
v
issue#include
See Can I issue an interactive shell in Vim window? Dhruva Sagar's answer.
The best choice should be tpope's vim-dispatch.
Many problems can be stated in term of paths
in the graph
constructed using the edges
.
http://stackoverflow.com/questions/1074474/should-i-use-double-or-float
http://stackoverflow.com/questions/2386772/difference-between-float-and-double
http://stackoverflow.com/questions/17603940/why-would-you-use-float-over-double-or-double-over-long-double
http://programmers.stackexchange.com/questions/188721/when-do-you-use-float-and-when-do-you-use-double
np.argwhere
is not suitable for indexing, use np.where
instead which calls np.nonzero
Zero mean is important. Awareness of this need to understand the dynamics of gradient descent.
echo
: normal messageechom
: keep in messages listechohl
: using highlight, need change back to None
after usingechohl WarningMsg | echo "warning" | echohl None
The home
, end
, page up
and page down
keys are used frequently. However, the default positions of these keys are hard to reach. So I decide to make some alias for these keys. Thanks to the programmable feature of Poker II. The changes I made is:
a
to home
d
to end
w
to page up
s
to page down
x
to delete
The functions are triggered by pressing the PN
key and the corresponding key at the same time. Now it`s convenient for me. :)
variable
and option
differencelet
and set
differenceSimple experiments of Batch Normalization on MNIST. The network set up follows the paper[1] which contains just 3 fully connected hidden layers.
Compared nonlinear units with Sigmoid and ReLU.
References:
[1] Ioffe, Sergey, and Christian Szegedy. "Batch normalization: Accelerating deep network training by reducing internal covariate shift." arXiv preprint arXiv:1502.03167 (2015).
Use gtest in Ubuntu: http://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
command:
$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q
quick fix: set nosmartindent
When using autocmd
, Vim doesn't know if you want to replacing an existing one. So it just append the new operation to the event. This is when to use augroup
.
Use autocmd!
to clear previous group.
http://stackoverflow.com/questions/29095070/how-to-simulate-from-an-arbitrary-continuous-probability-distribution
http://stackoverflow.com/questions/11673124/what-is-the-best-way-of-getting-random-numbers-in-numpy
http://stackoverflow.com/questions/21100716/fast-arbitrary-distribution-random-sampling
http://stackoverflow.com/questions/24103163/how-to-write-a-sampling-algorithm-from-a-custom-distribution
http://stackoverflow.com/questions/4265988/generate-random-numbers-with-a-given-numerical-distribution
<Shift+Ctrl+P>
<C-]>
: jump to first tag, :tag
g<C-]>
: open tag selecting list, :tjump
ctrlp
[]
use slice object internally.
command
$ grep -rn "text to search" /path/to/folder
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.