start new:
tmux
start new with session name:
tmux new -s myname
| # sources: | |
| # http://www.jgoodwin.net/?p=1223 | |
| # http://orgtheory.wordpress.com/2012/05/16/the-fragile-network-of-econ-soc-readings/ | |
| # http://nealcaren.web.unc.edu/a-sociology-citation-network/ | |
| # http://kieranhealy.org/blog/archives/2014/11/15/top-ten-by-decade/ | |
| # http://www.jgoodwin.net/lit-cites.png | |
| ########################################################################### | |
| # This first section scrapes content from the Web of Science webpage. It takes |
| library(httr) | |
| library(digest) | |
| library(XML) | |
| s3_request <- function(verb, bucket, path = "/", query = NULL, | |
| content = NULL, date = NULL) { | |
| list( | |
| verb = verb, | |
| bucket = bucket, | |
| path = path, |
| PREFIX=$HOME | |
| VERSION=1.2.3 | |
| # Install Protocol Buffers | |
| wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 | |
| tar -xf protobuf-2.4.1.tar.bz2 | |
| cd protobuf-2.4.1 | |
| ./configure --prefix=$PREFIX | |
| make | |
| make install |
| RMDFILE=demo-rmd-pandoc | |
| PANDOC=~/.cabal/bin/pandoc | |
| all: | |
| Rscript -e "require(knitr); require(markdown); knit('$(RMDFILE).rmd', '$(RMDFILE).md'); purl('$(RMDFILE).rmd')" | |
| ${PANDOC} --mathjax --toc -B header.html -A footer.html --bibliography refs.bib --css markdown.css -s $(RMDFILE).md -o $(RMDFILE).html | |
| set -e | |
| echo "Updates packages. Asks for your password." | |
| sudo apt-get update -y | |
| echo "Installs packages. Give your password when asked." | |
| sudo apt-get install build-essential bison openssl libmagic-dev libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 mysql-client mysql-server libmysql-ruby libmysqlclient-dev libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y | |
| echo "Installs ImageMagick for image processing" | |
| sudo apt-get install imagemagick --fix-missing -y |
| # Use xelatex instead of pdflatex | |
| $pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode --shell-escape %O %S'; | |
| # Always create PDFs | |
| $pdf_mode = 1; | |
| # Use Skim.app to preview generated PDFs | |
| $pdf_previewer = 'open -a Skim.app %S'; | |
| # Use continous mode by default |
| # Thanks to @samsonjs for the cleaned up version: | |
| # https://gist.github.com/samsonjs/4076746 | |
| PREFIX=$HOME | |
| VERSION=1.2.3 | |
| # Install Protocol Buffers | |
| wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 | |
| tar -xf protobuf-2.4.1.tar.bz2 | |
| cd protobuf-2.4.1 |
| (function() { | |
| // Change `silent` to true to invoke the promptless, self-closing | |
| // version of the bookmarklet. | |
| var silent = false; | |
| var url = location.href; | |
| var title = document.title; | |
| // Look for a single hAtom entry on the page, and iff one is found, extract | |
| // the entry-title in place of the document title: |