- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
#!/bin/sh | |
# This assumes you have access to the system via SSH already, and need | |
# remote VNC access as the same user, and you want only the primary display. | |
export DISPLAY=:0 | |
# Encoded password with http://www.motobit.com/util/base64-decoder-encoder.asp | |
export VNC_PASSWORD="dm5jX3Bhc3N3b3JkNzE=" # vnc_password71 | |
export VNC_PASSWORD="dm5jX3Bhc3M=" # vnc_password (a character limit is enforced?) | |
# Sadly many common VNC clients don't support encryption. |
library(fastmatch) | |
library(microbenchmark) | |
WORDS <- read.table("https://dotnetperls-controls.googlecode.com/files/enable1.txt", | |
stringsAsFactors = FALSE)[[1]] | |
words_factor <- as.factor(WORDS) | |
# generate 100 sentences of between 5 and 15 words: | |
SENTENCES <- lapply(c(1:100), sample, x = WORDS, size = sample(c(5:15), size = 1)) |
//' @title Sort using STL | |
//' @description if compiler flags and standard library support is available | |
//' (only tested on glibc), OpenMP, then this will use a parallel sort | |
//' algorithm which is significantly faster. It doesn't however deal with NA | |
//' values. TODO: handle NA values. | |
//' @param x vector of strings. In the current implementation, NA is completely | |
//' ignored, so is probably converted to "NA" | |
//' @examples | |
//' \dontrun{ |
lintr::lint_package(linters = lintr::default_linters[names(lintr::default_linters) != "object_camel_case_linter"]) |
#' @title list all functions in a package | |
#' @param pkg character string containing package name | |
#' @return character vector of functions in given package | |
#' @export | |
lsf <- function(pkg) { | |
envirName <- paste("package", pkg, sep = ":") | |
everything <- ls(pos = envirName, all.names = TRUE) | |
funcs <- c() |