By Jeroen Ooms, April 2015. Suggestions welcome.
VirtualBox Image: http://bit.ly/r-solaris
Username: root
Password: solaris11
#!/usr/bin/r | |
library(inline) | |
library(rbenchmark) | |
## openMPCode example from Rcpp/examples/OpenMP/ by Dirk E. | |
openMPCode <- ' | |
// assign to C++ vector | |
std::vector<double> x = Rcpp::as<std::vector< double > >(xs); |
Recently I've been overhauling the mechanisms for introducing unstable features to both the Rust language and libraries. Part of that work landed for the 1.0.0-alpha release when we started producing warnings about using unstable library APIs, which I'm sure you noticed. Now the transition to the system described in [RFC 507][rfc-507] is nearing completion, so it's time to remind everybody what's happening and how to cope with it.
#!/bin/sh | |
# This assumes you have: | |
# 1) A user called `hubot` in charge of the bot. | |
# 2) A file called /home/hubot/.hubotrc that contains the Hubot credentials. | |
# | |
# To set the adapter either edit bin/hubot to specify what you want or append | |
# `-- -a campfire` to the $DAEMON variable below. | |
# | |
### BEGIN INIT INFO |
# hubot | |
description "Hubot Campfire bot" | |
author "David Wittman <[email protected]>" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
# Path to Hubot installation | |
env HUBOT_DIR='/opt/hubot/' |
Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
// create an IAM Lambda role with access to dynamodb | |
// Launch Lambda in the same region as your dynamodb region | |
// (here: us-east-1) | |
// dynamodb table with hash key = user and range key = datetime | |
console.log('Loading event'); | |
var AWS = require('aws-sdk'); | |
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'}); | |
exports.handler = function(event, context) { |
## Copy this file into config.site ## | |
CC="cc -xc99" | |
CPPFLAGS="-I/opt/csw/include" | |
CFLAGS="-I/opt/csw/include -O -xlibmieee" | |
LDFLAGS="-L/opt/csw/lib" | |
F77=f95 | |
FFLAGS=-O | |
CXX="CC -library=stlport4" | |
CXXFLAGS=-O | |
FC=f95 |