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:
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
otool <- Sys.which("otool") | |
if (otool == "") { | |
stop("This utility requires 'otool' to run") | |
} | |
allPackages <- list.files(.libPaths(), full.names = TRUE) | |
stdLibsUsed <- lapply(allPackages, function(path) { | |
pkgName <- basename(path) | |
libPath <- file.path(path, "libs", paste0(pkgName, ".so")) | |
if (!file.exists(libPath)) { |
## 2015-11-11 NOTE! | |
## with_libpaths() is one of the functions removed (well, deprecated, for now) from | |
## devtools | |
## it's in withr now! | |
## see newer script below!!! | |
library(devtools) # with_lib(), install_github() | |
tmp_lib <- "~/tmp/tmp_lib" | |
dir.create(tmp_lib) |
I think the two most important messages that people can get from a short course are:
a) the material is important and worthwhile to learn (even if it's challenging), and b) it's possible to learn it!
For those reasons, I usually start by diving as quickly as possible into visualisation. I think it's a bad idea to start by explicitly teaching programming concepts (like data structures), because the pay off isn't obvious. If you start with visualisation, the pay off is really obvious and people are more motivated to push past any initial teething problems. In stat405, I used to start with some very basic templates that got people up and running with scatterplots and histograms - they wouldn't necessary understand the code, but they'd know which bits could be varied for different effects.
Apart from visualisation, I think the two most important topics to cover are tidy data (i.e. http://www.jstatsoft.org/v59/i10/ + tidyr) and data manipulation (dplyr). These are both important for when people go off and apply
#!/usr/bin/env bash | |
function __tc_encode { | |
# Only unicode characters are not supported | |
echo -n "$1" | sed "s/\([|']\)/\|\1/g; s/\[/\|\[/g; s/\]/\|\]/g; s/\r/\|r/g;" | sed ':a;N;$!ba;s/\n/|n/g' | |
} | |
function __tc_message { | |
echo "##teamcity[message text='$(__tc_encode "$2")' status='${1:-NORMAL}']" | |
} | |
function __tc_simple { |