Add Ubuntu repository:
sudo add-apt-repository ppa:jaap.karssenberg/zim
and install zim
package.
- remember tray icon
- can enable attachment panel if needed depeonding on a wiki
{ | |
"translatorID": "7cb70025-a888-4a29-a210-93ec52da40d5", | |
"translatorType": 3, | |
"label": "BibTeX key for Markdown", | |
"creator": "created by liob based on the works of Peter O'Brien, Simon Kornblith and Richard Karnesky", | |
"target": "bib", | |
"minVersion": "2.1.9", | |
"maxVersion": null, | |
"priority": 200, | |
"inRepository": true, |
Add Ubuntu repository:
sudo add-apt-repository ppa:jaap.karssenberg/zim
and install zim
package.
### duplicity command examples | |
### http://www.nongnu.org/duplicity/duplicity.1.html | |
## backup home dir to remote drive | |
## NOTE: can use GUI for that | |
## list of files backed up on a mounted drive | |
duplicity list-current-files --no-encryption file:///media/USB300G/full-backup-dir-with-archives > /home/user/restore/list.txt | |
## NOTE: may run really long and create hundreds of Mb file if a lot was backed up |
## extract part of a string with grep | |
echo "12 BBQ ,45 rofl, 89 lol"|grep -P '\d+ (?=rofl)' -o | |
## -P means Perl-style regex, -o means match only not the full line | |
## extract part of a line from every line in a file $FILE | |
grep -P 'home.*' -o "$FILE" | while read -r line ; do | |
echo "$line" | |
## do something with extracted string | |
## e.g. capture part of it into another variable | |
VARNAME=$(echo "$line"|grep -P "$DIR.*" -o) |
### R setup from specific CRAN mirror: cran.cnr.berkeley.edu | |
## make sure backports is checked in software sources/updates tab | |
## add repository instructions http://cran.r-project.org/bin/linux/ubuntu/README | |
sudo gedit /etc/apt/sources.list ## or better from GUI-Synaptic to check correct URL | |
## add: | |
## deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu precise/ | |
## add secure key required for mirror reporitories | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 |
## recursively grab web-directory content | |
wget -r --no-parent http://mysite.com/dir/ | |
## NOTE: no-parent option to avoid following links that lead higher than the directory we want |
library(XML) | |
#file.xml <- # assign it | |
## list of row-nodes | |
lsrows <- xmlChildren(xmlRoot(xmlTreeParse(file.xml))[["Worksheet"]][["Table"]]) | |
## row names are lsrows[[1]] | |
nms.rows <- xmlSApply(lsrows[[1]], xmlValue) |
power(expon) = x -> x^expon | |
square = power(2) | |
square(2) | |
cube = power(3) | |
cube(2) |
## split on any punctuation or space, common in web form submissions/survey text answers | |
unlist(strsplit(s, split="[[:punct:][:space:]]")) |
## simplest case of counts-based bar graph | |
gpb <- ggplot(dfstr, aes(x=factor(age))) | |
gpb + geom_bar(stat="bin") | |
## add bar fill by another factor: add fill aes | |
gpb <- ggplot(dfstr, aes(x=factor(age), fill=factor(gender))) | |
gpb + geom_bar(stat="bin") | |
## when bar composition comes from different dataframe columns | |
gp <- ggplot(dfnum) |