This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:12.04 | |
MAINTAINER Quinten Krijger < qkrijger [at] gmail {dot} com> | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update && apt-get -y install python-software-properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using homebrew | |
# gcc 4.9 build fails on template warnings | |
# clang not supported yet | |
brew tap homebrew/versions | |
brew install gcc47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "elasticsearch", | |
"instances" : "1", | |
"mem": "1024", | |
"cpus": "1", | |
"executor": "/var/lib/mesos/executors/docker", | |
"cmd": "'relateiq/elasticsearch'", | |
"env": { | |
}, | |
"ports": [ 9200, 9300 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [{ | |
"type": "virtualbox", | |
"guest_os_type": "Linux", | |
"iso_url": "https://github.com/steeve/boot2docker/releases/download/v0.3.0/boot2docker.iso", | |
"iso_checksum": "e03670ed349c54848e20d9043a90f2df8df70d82e674b84a7083301193745b19", | |
"iso_checksum_type": "sha256", | |
"ssh_username": "docker", | |
"ssh_password": "tcuser", | |
"shutdown_command": "sudo poweroff" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cuda.h> | |
#include <stdio.h> | |
void cudasafe(int error, char* message, char* file, int line) { | |
if (error != cudaSuccess) { | |
fprintf(stderr, "CUDA Error: %s : %i. In %s line %d\n", message, error, file, line); | |
exit(-1); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val a = ('a', 2) //> a : (Char, Int) = (a,2) | |
val b = ('b', 2) //> b : (Char, Int) = (b,2) | |
val c = ('c', 3) //> c : (Char, Int) = (c,3) | |
val d = ('d', 1) //> d : (Char, Int) = (d,1) | |
val list = List(a, b, c, d) //> list : List[(Char, Int)] = List((a,2), (b,2), (c,3), (d,1)) | |
val sub = List(('a', 1), ('b', 4), ('c', 3)) //> sub : List[(Char, Int)] = List((a,1), (b,4), (c,3)) | |
def combo(sub: Occurrences): List[Occurrences] = { | |
val acc: List[Occurrences] = List(List()) | |
sub match { |
NewerOlder