emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
function pwdx { | |
lsof -a -p $1 -d cwd -n | tail -1 | awk '{print $NF}' | |
} |
This gist shows in two steps how to tilt and stack maps using ggplot2 in order to create an image like this one: [![enter image description here][1]][1]
Let's load the necessary libraries and data to use a reproducible example:
# load libraries
library(rgeos)
library(UScensus2000tract)
library(ggplot2)
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
---------- Forwarded message ---------- | |
From: chris wiggins <chris.wiggins@[YYY].edu> | |
Date: Wed, Aug 1, 2012 at 7:26 PM | |
Subject: stats history | |
To: hadley@[XXX].edu | |
Cc: chris wiggins <chris.wiggins@[YYY].edu> | |
Dear Hadley: |
// Predict from Gaussian Process | |
// All data parameters must be passed as a list to the Stan call | |
// Based on original file from https://code.google.com/p/stan/source/browse/src/models/misc/gaussian-process/ | |
data { | |
int<lower=1> N1; | |
vector[N1] x1; | |
vector[N1] y1; | |
int<lower=1> N2; | |
vector[N2] x2; |
#!/usr/bin/env python | |
import urllib | |
import pprint | |
import amazonproduct | |
from BeautifulSoup import BeautifulSoup | |
from review import db | |
AWS_KEY = 'YOUR_AWS_KEY' | |
SECRET_KEY = 'YOUR_AWS_SECRET_KEY' | |
API_PAGE_LIMIT = 10 |
(ns sample | |
(:require [clojure-leap.core :as leap] | |
[clojure-leap.hand :as l-hand] | |
[clojure-leap.pointable :as l-pointable :refer [tip-position]])) | |
(defn process-frame [frame] | |
(let [_ (println "Frame id:" (.id frame) "timestamp:" (.timestamp frame) | |
"hands:" (leap/hands frame) "fingers:" (leap/fingers frame) "tools:" (leap/tools frame))] | |
(when-let [hand (and (leap/hands? frame) (leap/hand frame 0))] | |
(let [fingers (leap/fingers hand) |