Vim saves text in registers. Selecting text and pressing y
copies (yanks) text into a register, and pressing p
pastes (puts) it.
You can see the register contents with :reg
.
Named registers: there are named registers a-z.
Vim saves text in registers. Selecting text and pressing y
copies (yanks) text into a register, and pressing p
pastes (puts) it.
You can see the register contents with :reg
.
Named registers: there are named registers a-z.
Rule { | |
Matches { Url("reddit.com") }, | |
Matches { Url("quora.com") }, | |
Matches { Url("vice.com") }, | |
Matches { Url("9to5mac.com") }, | |
Matches { Url("techdirt.com") }, | |
Action(Discard) | |
}; |
# When the network is down | |
sudo ip link set dev enp0s1 down | |
sudo ip link set dev enp0s1 up | |
# When the clock gets out of sync | |
sudo service ntp stop | |
sudo ntpd -gq | |
sudo service ntp start |
There is a sensitive document. Credit card statements. Reimbursement.
I want to redact (hide) parts of the document.
pdf2ps in.pdf - | ps2pdf - out.pdf
#' symlog transformation | |
#' | |
#' `symlog_trans()` transforms data using `log(x)` for `abs(x) > thr`, where | |
#' `thr` is a tuneable threshold, but leaves the data linear for `abs(x) < thr`. | |
#' (credit for base code to https://stackoverflow.com/users/1320535/julius-vainora) | |
#' | |
#' | |
#' @param base base of logarithm | |
#' @param thr numeric threshold for transitioning from log to linear | |
#' @param scale numeric scaling factor for data |
import pubchempy as pcp | |
import pandas as pd | |
import numpy as np | |
from collections import OrderedDict | |
drugs_df = pd.read_csv('oli_drugs.csv') | |
def queryPubChem(compounds,batchlist = None,match='name'): | |
""" | |
This function queries the PubChem database to retrieve both the isomeric smile and CID of a compound. |
x = c(0.8846, 1.1554, 0.9317, 0.9703, 0.9053, 0.9454, 1.0146, 0.9012, 0.9055, 1.3307) | |
y = c(0.9828, 1.0329, 0.931, 1.3794, 0.9273, 0.9605, 1.0259, 0.9542, 0.9717, 0.9357) | |
ShortSci = c("MotAlb", "PruMod", "EriRub", "LusMeg", "PhoOch", "PhoPho", | |
"SaxRub", "TurMer", "TurPil", "TurPhi") | |
df <- data.frame(x = x, y = y, z = ShortSci) | |
library(ggplot2) | |
library(ggrepel) | |
p1 <- ggplot(data = df, aes(x = x, y = y)) + theme_bw() + | |
geom_text_repel(aes(label = z), |
Select All | |
`Object > Clipping mask > Release` | |
`Object > Path > Clean up` | |
Clipping masks. Deleting an object deletes random objects scattered throughout b.c they are connected thru the clipping mask. I do not want this. |
conda adds an uncalled for (base)
before my PS1 prompt. Most solutions suggest to edit the .condarc
file. This did not work for me. Instead:
conda config --set auto_activate_base False
https://askubuntu.com/questions/1026383/why-does-base-appear-in-front-of-my-terminal-prompt