- Raspberry Pi
- Raspbian wheezy
- Access to shell, e.g., via SSH
Note the MANUAL
operations below
sudo raspi-config # MANUAL: expand disk, set password, set locale to US, change the network name
#!/bin/bash | |
### NOTE | |
# Ideally, you should create an image from small partition (e.g., 4 GB) instead of the whole SD card (e.g., 32 GB). | |
# For example, an image for Raspbian image should be created by the following procdure: | |
# (1) Install the official Raspbian image (3.5 GB for Jessie) on an SD card | |
# (2) Manually expand the partition to a modest size to accommodate your base software (e.g., 4 GB) | |
# (3) Perform apt-get update and upgrade, install software and configuration that you want. | |
# (4) Create an image from that (4 GB) partition | |
# |
# This is the CMakeCache file. | |
# For build in directory: /home/pi/pcl-pcl-1.7.2/build | |
# It was generated by CMake: /usr/bin/cmake | |
# You can edit this file to change values found and used by cmake. | |
# If you do not want to change any of the values, simply exit the editor. | |
# If you do want to change a value, simply edit, save, and exit the editor. | |
# The syntax for the file is as follows: | |
# KEY:TYPE=VALUE | |
# KEY is the name of a variable in the cache. | |
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. |
# These settings are obtained from | |
# pkg-config --print-variables pcl_common-1.7 | |
# pkg-config --variable=libdir pcl_common-1.7 | |
PCL_INCLUDE_DIRS=/usr/include/pcl-1.7 | |
PCL_LIBRARY_DIRS=/usr/lib/arm-linux-gnueabihf |
# requires: pip install pyPDF2 | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
import os | |
# prepare output writer | |
pdfWriter = PdfFileWriter() | |
# loop reading the first page of each files | |
for aFileName in [fname for fname in os.listdir(".") if ".pdf" in fname]: | |
pdfReader = PdfFileReader(open(aFileName, "rb")) |
--- | |
title: "Rank-order matching" | |
output: html_notebook | |
--- | |
```{r, include=FALSE} | |
# Package installation | |
if (!require("pacman")) install.packages("pacman", repos='https://stat.ethz.ch/CRAN/'); library(pacman) | |
p_load(combinat) |