Skip to content

Instantly share code, notes, and snippets.

View BenBrock's full-sized avatar

Benjamin Brock BenBrock

View GitHub Profile
@BenBrock
BenBrock / generate_dots.c
Created May 23, 2014 16:21
Generate DOT Graph Description Language Based on a Tree Data Structure
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <dllist.h>
#define MAX_CHILDREN 32
typedef struct node {
int val;
@BenBrock
BenBrock / Brew Doctor after Mavericks Upgrade
Created October 23, 2013 03:07
Brew Doctor after upgrading to Mavericks
cheshire:~ benjamin$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
macport:~ benjamin$ mkdir /tmp/isl-test && \
> cd /tmp/isl-test && \
> cat >isl-test.c<<EOF
> #include <stdio.h>
> #include <isl/version.h>
> int
> main ()
> {
> printf("%s\n", isl_version());
>
@BenBrock
BenBrock / gcc48-config.log
Created October 2, 2013 18:47
config.log output for gcc48
bash-3.2$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../configure --build=x86_64-apple-darwin12.5.0 --prefix=/usr/local/Cellar/gcc48/4.8.1/gcc --datarootdir=/usr/local/Cellar/gcc48/4.8.1/share --bindir=/usr/local/Cellar/gcc48/4.8.1/bin --enable-languages=c,c++ --program-suffix=-4.8 --with-gmp=/usr/local/opt/gmp4 --with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt/libmpc08 --with-cloog=/usr/local/opt/cloog018 --with-isl=/usr/local/opt/isl011 --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --enable-plugin --disable-nls --disable-multilib
## --------- ##