Skip to content

Instantly share code, notes, and snippets.

Erik Schnetter eschnett

Block or report user

Report or block eschnett

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f64d4683ebcdf12552d24b961fb05653
In [1]:
pwd()
Out[1]:
'/Users/eschnett/Camrex'
In [2]:
import yt
In [3]:
View Poisson.hs
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-type-defaults #-}
module Poisson (main) where
import Prelude hiding (id, (.))
import qualified Prelude
import Data.Kind
import Math.Polynomial hiding (x)
@eschnett
eschnett / headers-10.14.4-fix.patch
Created Mar 28, 2019
Make gcc 8.3.0 build on MacOS 10.14.4
View headers-10.14.4-fix.patch
diff -ruN gcc-8.3.0-old/fixincludes/fixincl.x gcc-8.3.0/fixincludes/fixincl.x
--- gcc-8.3.0-old/fixincludes/fixincl.x 2018-02-22 11:12:26.000000000 -0500
+++ gcc-8.3.0/fixincludes/fixincl.x 2019-03-28 15:59:33.000000000 -0400
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed February 22, 2018 at 03:46:51 PM by AutoGen 5.18
+ * It has been AutoGen-ed March 28, 2019 at 03:59:33 PM by AutoGen 5.18.16
* From the definitions inclhack.def
@eschnett
eschnett / MAKE.OUT
Created Nov 16, 2018
amuse-11.2 on MacOS
View MAKE.OUT
/Users/eschnett/anaconda3/bin/python setup.py build
running build
running build_py
copying src/amuse/config.py -> build/lib/amuse
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running configure_codes
Already configured, not running configure
@eschnett
eschnett / CONFIGURE.OUT
Created Nov 16, 2018
amuse-11.2 on MacOS
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View generics
struct Point2d<T>(T, T);
struct Point3d<T>(T, T, T);
fn do_stuff<P, T>(p: P<T>) -> P<T> {
p
}
View gist:fdf6293c862d3511c1d302aee87a6882
-- While building custom Setup.hs for package ghc-paths-0.1.0.9 using:
/private/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/stack18866/ghc-paths-0.1.0.9/.stack-work/dist/x86_64-osx/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 configure --with-ghc=/Users/eschnett/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --with-ghc-pkg=/Users/eschnett/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/pkgdb --libdir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/lib --bindir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/bin --datadir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/share --libexecdir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/libexec --sysconfdir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/etc --docdir=/Users/eschnett/.stack/snapshots/x86_64-osx/lts-11.0/8.2.2/doc/ghc-paths-0.1.0.9 --
You can’t perform that action at this time.