Skip to content

Instantly share code, notes, and snippets.

View gnzlbg's full-sized avatar

gnzlbg gnzlbg

View GitHub Profile
@gnzlbg
gnzlbg / hdf5 install error homebrew mpich
Created May 15, 2013 08:42
hdf5 install error homebrew mpich
////////////////////////////////////////////////////////////////////////////////
01.configure:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... bin/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
@gnzlbg
gnzlbg / gist:6447208
Created September 5, 2013 07:57
Homebrew-versions llvm34 errors while linking googletest
/usr/local/Cellar/cmake/2.8.11.2/bin/cmake -H/Users/gnzlbg/projects/hom3 -B/Users/gnzlbg/projects/hom3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_progress_start /Users/gnzlbg/projects/hom3/CMakeFiles /Users/gnzlbg/projects/hom3/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f ext/gtest/CMakeFiles/googletest.dir/build.make ext/gtest/CMakeFiles/googletest.dir/depend
cd /Users/gnzlbg/projects/hom3 && /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_depends "Unix Makefiles" /Users/gnzlbg/projects/hom3 /Users/gnzlbg/projects/hom3/ext/gtest /Users/gnzlbg/projects/hom3 /Users/gnzlbg/projects/hom3/ext/gtest /Users/gnzlbg/projects/hom3/ext/gtest/CMakeFiles/googletest.dir/DependInfo.cmake --color=
Dependee "/Users/gnzlbg/projects/hom3/ext/gtest/CMakeFiles/googletest.dir/DependInfo.cmake" is newer than depender "/Users/gnzlbg/projects/hom3/ext/gtest/CMakeFiles/googletest.dir/depend.internal".
Dependee "/Users/gnzlbg/projects/hom3/ext/gtest/CM
In file included from /Users/gnzlbg/projects/scattered/tests/vector_test.cpp:1:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/iostream:38:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/ios:216:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/__locale:15:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/string:439:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/algorithm:627:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/memory:600:
/usr/local/lib/llvm-3.4/lib/c++/v1/iterator:794:28: error: invalid operands to binary expression ('ostream_type' (aka 'basic_ostream<char, std::__1::char_traits<char> >') and 'const TestType')
*__out_stream_ << __value_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
@gnzlbg
gnzlbg / gist:7641761
Created November 25, 2013 14:11
llvm34 fails to reinstall in 10.8
This file has been truncated, but you can view the full file.
01.configure (search for [01.configure] tag)
01.configure.cc (search for [01.configure.cc] tag)
02.make (search for [02.make] tag)
02.make.cc (search for [02.make.cc] tag)
config.log (search for [config.log] tag)
[01.configure]:
checking for C compiler default output file name... a.out
@gnzlbg
gnzlbg / gist:8436401
Created January 15, 2014 13:41
llvm35 fails to install in mavericks
This file has been truncated, but you can view the full file.
To jump for the different files goto the [tags]:
1. [console] Console output.
2. [doctor] brew doctor output.
3. [config.log] config.log
4. [configure] 01.configure
5. [01.configure.cc] 01.configure.cc
6. [02.make] 02.make
7. [02.make.cc] 02.make.cc
/// Primitive number constants
trait PrimNumConstants {
const ZERO: Self;
const ONE: Self;
fn zero() -> Self; // make const?
fn one() -> Self;
}
extern crate time;
use time::{PreciseTime};
fn main() {
let nx: usize = 100;
let ny: usize = 100;
let delta_x: f64 = 1.0;
let dx = delta_x / (nx as f64);
let mut temp_lhs = Vec::<f64>::with_capacity(nx * ny);
let mut temp_rhs = Vec::<f64>::with_capacity(nx * ny);
#pragma once
/// \file
///
/// Access to vertices of an any geometry.
#include <hm3/geometry/access/vertex.hpp>
#include <hm3/geometry/primitive/any/any.hpp>
namespace hm3::geometry::any_primitive {
/// Number of vertices in a any.
@gnzlbg
gnzlbg / .spacemacs
Created January 6, 2017 13:51
my migrated spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@gnzlbg
gnzlbg / .spacemacs
Created January 6, 2017 14:02
spacemacs config take2
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory