As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
This is companion code to this guide.
| import shapefile | |
| # read the shapefile | |
| reader = shapefile.Reader("my.shp") | |
| fields = reader.fields[1:] | |
| field_names = [field[0] for field in fields] | |
| buffer = [] | |
| for sr in reader.shapeRecords(): | |
| atr = dict(zip(field_names, sr.record)) | |
| geom = sr.shape.__geo_interface__ | |
| buffer.append(dict(type="Feature", \ |
| curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d ' | |
| { | |
| "email" : "john@smith.com", | |
| "name" : "John Smith", | |
| "username" : "@john" | |
| } | |
| ' | |
| curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d ' | |
| { |
| import os | |
| import logging | |
| import argparse | |
| import ConfigParser as configparser | |
| from paste.deploy.converters import asbool, asint, aslist | |
| # | |
| # Declare expected command-line arguments | |
| # |
| #' Install/update necessary packages from CRAN, Bioconductor, GitHub, or local sources | |
| #' | |
| #' @param file a file with packages; overrides packages parameter | |
| #' @param packages a vector of strings with names of packages from CRAN, Bioconductor, GitHub | |
| #' @param updatePackages whether to update existing packages (Default: FALSE) | |
| #' @param dryRun whether to test for missing packages (Default: FALSE) | |
| #' | |
| #' @example | |
| #' \dontrun { | |
| #' source("https://gist.githubusercontent.com/cannin/6b8c68e7db19c4902459/raw/installPackages.R") |
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local |
| library("shiny") | |
| x <- runApp(shinyApp( | |
| fluidPage( | |
| "Password:", | |
| tags$input(id = "password", type = "password"), | |
| actionButton("done", "Done") | |
| ), | |
| function(input, output) { | |
| observe({ |