Skip to content

Instantly share code, notes, and snippets.

View metacollin's full-sized avatar

metacollin metacollin

View GitHub Profile
@metacollin
metacollin / note.md
Last active July 2, 2016 02:22
clang and openmp in Mac OS X

Refer to https://clang-omp.github.io/ .

We need to install something:

brew install libiomp
brew install clang-omp

Then we need to set the environment:

#!/bin/bash
# Script to instruct the Mac how to route packets to the
# software defined network where containers created via boot2docker
# reside. This lets you casually directly to ports (ssh, http, etc. etc.)
# on those containers.
#
function ohfk(){ echo "FUCK: $*" ; }
function ohno(){ echo "FAILING: $*" ; exit 1; }
[ ! -z "$1" ] && DOCKER_MACHINE_ID="$1" || DOCKER_MACHINE_ID="default"
@metacollin
metacollin / tables.md
Last active April 14, 2023 12:55 — forked from mokagio/tables.md
How to do tables in GitHub flavoured Markdown

This:

heading 1 | heading 2 | heading 3
--- | --- | ---
abc | bcd | cde
def | efg | fgh

becomes this: