Global Clash installation with Stack
Tested on Ubuntu 18.04. NB: The following commands should not be run in a directory containing a stack.yaml file.
Install Stack from https://haskellstack.org
$ curl -sSL https://get.haskellstack.org/ | sh
Run
-- 0. Download x.data and y.dat from https://www.kaggle.com/masterdezign/iris-with-onehotencoded-targets | |
-- 1. Install stack (command line interface is marked by $): | |
-- $ wget -qO- https://get.haskellstack.org/ | sh | |
-- (alternatively, curl -sSL https://get.haskellstack.org/ | sh) | |
-- 2. Install open-blas from https://www.openblas.net/ (needed for hmatrix package) | |
-- 3. Run | |
-- $ stack --resolver lts-10.6 --install-ghc runghc --package hmatrix-0.18.2.0 Iris.hs | |
import Numeric.LinearAlgebra as LA | |
import qualified Data.Vector.Storable as V |
Tested on Ubuntu 18.04. NB: The following commands should not be run in a directory containing a stack.yaml file.
Install Stack from https://haskellstack.org
$ curl -sSL https://get.haskellstack.org/ | sh
Run
#!/bin/bash | |
add-apt-repository -y ppa:hvr/ghc | |
apt-get install -y cabal-install-2.4 | |
apt install ghc-8.6 | |
curl -sSL https://get.haskellstack.org/ | sh | |
# to install intero, either install |
#!/bin/bash | |
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### |
# Installation on Dell XPS | |
# Please also consult official documentation: | |
# https://wiki.archlinux.org/index.php/Installation_Guide | |
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360) | |
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550) | |
# Enter BIOS with F2 and configure: | |
# - "System Configuration" > "SATA Operation": "AHCI" | |
# - "Secure Boot" > "Secure Boot Enable": "Disabled" |
# Arch linux packages (install via $ pacman -S <package name>) | |
base | |
base-devel | |
# Zsh config: | |
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Edit .zshrc: add extract to plugins list | |
# GUI |
# Resource | |
# https://gist.github.com/brammitch/281e9a2f3aca57ae4a333fc63732f602 | |
# https://wiki.archlinux.org/index.php/Installation_guide | |
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370) | |
# Enter BIOS with F2 and configure: | |
# - "System Configuration" > "SATA Operation": "AHCI" | |
# - "Secure Boot" > "Secure Boot Enable": "Disabled" | |
# Set the keyboard layout and font |
-- Chimera and dissipative solitons demonstrations in a system | |
-- with two strongly different delays \tau_2 = 100*\tau_1 from arXiv:1712.03283 | |
-- | |
-- How to execute: | |
-- 1. Save the code to Chimera.hs | |
-- 2. Install stack (command line interface is marked by $): | |
-- $ wget -qO- https://get.haskellstack.org/ | sh | |
-- OR | |
-- $ curl -sSL https://get.haskellstack.org/ | sh | |
-- 3. Run: |