Key | Action |
---|---|
j | Move to the next undeleted entry. |
k | Move to the previous undeleted entry. |
Source: https://www.reddit.com/r/linux/comments/14heuu/xfce_gala_plank_awesome/ | |
Add the elementary daily ppa and install gala + plank + dconf-tools | |
sudo apt-add-repository ppa:elementary-os/daily | |
sudo apt-get update $$ sudo apt-get dist-upgrade | |
sudo apt-get install gala plank dconf-tools gtk2-engines-pixbuf | |
Set gala as xfce's default window manager |
import pandas as pd | |
import numpy as np | |
from sklearn.feature_extraction import DictVectorizer | |
def encode_onehot(df, cols): | |
""" | |
One-hot encoding is applied to columns specified in a pandas DataFrame. | |
Modified from: https://gist.github.com/kljensen/5452382 | |
#!/usr/bin/env python | |
from scipy import optimize | |
from scipy import integrate | |
import numpy as np | |
import sys | |
l, L = 0.02, 1 | |
N = 128 |
#!/usr/bin/env python | |
""" | |
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction. | |
""" | |
from __future__ import print_function, division | |
import numpy as np | |
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten | |
from keras.models import Sequential |
#!/bin/sh | |
# | |
# Build GCC with support for offloading to NVIDIA GPUs. | |
# | |
work_dir=$HOME/offload/wrk | |
install_dir=$HOME/offload/install | |
# Location of the installed CUDA toolkit |
tl;dr: If you want to just know the method, skip to How to
section
Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json
to work, and the easiest way to painlessly generate it is to use CMake.
For simple projects you can try to use Bear - it will capture compile commands and generate compile_commands.json
. Although I could never make it work in big projects with custom or complicated build systems.
But what if I tell you you can quickly hack your way around that, and generate compile_commands.json
for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.
[ | |
// Navigation | |
{ | |
"key": "ctrl-h", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "ctrl-l", | |
"command": "workbench.action.navigateRight" | |
}, |