x = 'hello, python world!'
print x
print x.split(' ')
## hello, python world!
## ['hello,', 'python', 'world!']
echo hello world
echo 'a b c' | sed 's/ /\|/g'
# number of lines
ls -l
## hello world
## a|b|c
## total 112
## -rw-r--r-- 1 zzr zzr 11 Jan 5 02:03 CNAME
## -rw-r--r-- 1 zzr zzr 145 Jan 9 07:18 _config.yml
## drwxr-xr-x 2 zzr zzr 4096 Jan 5 04:01 _includes
## drwxr-xr-x 2 zzr zzr 4096 Jan 5 02:22 _layouts
## drwxr-xr-x 5 root root 4096 Jan 9 07:19 _site
## drwxr-xr-x 2 zzr zzr 4096 Jan 9 07:24 cache
## -rw-r--r-- 1 zzr zzr 1287 Jan 9 06:43 dsl.md
## -rw-r--r-- 1 zzr zzr 3193 Jan 9 07:11 envir.html
## -rw-r--r-- 1 zzr zzr 1125 Jan 9 07:11 envir.md
## -rw-r--r-- 1 zzr zzr 1234 Jan 9 07:13 envir.rmd
## drwxr-xr-x 2 zzr zzr 4096 Jan 9 07:24 figure
## -rw-r--r-- 1 zzr zzr 50361 Jan 9 07:47 index.html
## -rw-r--r-- 1 zzr zzr 3670 Jan 9 07:47 index.md
## -rw-r--r-- 1 zzr zzr 2604 Jan 9 07:49 index.rmd
## -rw-r--r-- 1 zzr zzr 203 Jan 3 09:34 socprog-studyguide.Rproj
## drwxr-xr-x 4 zzr zzr 4096 Jan 5 04:01 www-assets
library(VennDiagram)
## Loading required package: grid
A <- sample(1:100, 25, replace = FALSE)
B <- sample(1:100, 25, replace = FALSE)
C <- sample(1:100, 25, replace = FALSE)
D <- sample(1:100, 25, replace = FALSE)
print(venn.diagram(x = list(Sept = A, Oct = D, Nov = B, Dec = C), filename = NULL,
col = "transparent", fill = c("cornflowerblue", "green", "yellow", "darkorchid1"),
alpha = 0.5, label.col = c("orange", "white", "darkorchid4", "white", "white",
"white", "white", "white", "darkblue", "white", "white", "white", "white",
"darkgreen", "white"), cex = 1.5, fontfamily = "serif", fontface = "bold",
cat.col = c("darkblue", "darkgreen", "orange", "darkorchid4"), cat.cex = 1.5,
cat.pos = 0, cat.dist = 0.07, cat.fontfamily = "Ubuntu", rotation.degree = 270,
margin = 0.2))
## (polygon[GRID.polygon.1], polygon[GRID.polygon.2], polygon[GRID.polygon.3], polygon[GRID.polygon.4], polygon[GRID.polygon.5], polygon[GRID.polygon.6], polygon[GRID.polygon.7], polygon[GRID.polygon.8], text[GRID.text.9], text[GRID.text.10], text[GRID.text.11], text[GRID.text.12], text[GRID.text.13], text[GRID.text.14], text[GRID.text.15], text[GRID.text.16], text[GRID.text.17], text[GRID.text.18], text[GRID.text.19], text[GRID.text.20], text[GRID.text.21], text[GRID.text.22], text[GRID.text.23], text[GRID.text.24], text[GRID.text.25], text[GRID.text.26], text[GRID.text.27])
© 2014 Ilya Musabirov