Load TAGS file in emacs manually
Posted Over 6 years ago. Visible to the public.
M-x visit-tags-table
You need to point to the directory in which ETAGS file generated and it will be loaded.
Related cards:
ModuleNotFoundError: No module named 'cv2' in jupyter notebook
Create a new environment with as of now python 3.7 since opencv not available in conda's python 3.8 packages
conda create --name opencv-cuda python=3.7
conda activate opencv-cuda
conda install pytorch torchvision cudatoolkit=10.2 openc...
Elixir / Phoenix system packages install on opensuse 13.2
zypper ar http://download.opensuse.org/repositories/home:/Ledest:/erlang/openSUSE_13.2/home:Ledest:erlang.repo
# for inotify (live code reload)
zypper ar http://download.opensuse.org/repositories/filesystems/openSUSE_13.2/
zypper ref
zypper ...
Memoization in ruby with nested methods
class Example
def foo
def foo
@bar
end
bar = (1..10).inject(1, :*)
puts "bar is #{bar}"
@wibble = "wibble is #{bar / 30}"
@bar = bar / 20
end
end
example = Example.new
example.foo
bar is 3628800
=> 181440...
gdiff vim other branch same file
Given you are on the development branch and have another branch my_topic
And want to compare the same file on the two different branches
When open a file in vim say, Gemfile
Then type :Gdiff my_topic
And Vim open Gemfile from my_...
Debug batamanjs model in view context
To inspect a model attributes binded to a dom element
$context($("#elem-id")[0]).controller.model_name.toJSON()
Original idea taken from the link below.
Emacs keybinding link collection
https://www.emacswiki.org/emacs/EmacsNewbieKeyReference#toc9
https://tuhdo.github.io/c-ide.html
Join previous line: M-^
Join next line: C-1 M-^
Install XGBoost with GPU support with conda
conda install py-xgboost-gpu
source: https://docs.anaconda.com/anaconda/user-guide/tasks/gpu-packages/
set user home inside a docker container
ENV HOME /home/dev
USER dev
RUN curl -L https://get.rvm.io | bash -s stable
Posted by Bonyiii to Bonyiii's deck (2017-10-03 20:08)