Skip to content

Instantly share code, notes, and snippets.

@klarh
klarh / gist:5718792
Last active December 18, 2015 03:29
/usr/bin/ghc-pkg --version
Using ghc-pkg 7.6.3
/usr/bin/cabal --numeric-version
/usr/bin/cabal --version
/usr/bin/cabal --version
You are using a version of cabal-install that has the --only-dependencies flag
to the install command. Invoking that instead...
/usr/bin/cabal --config-file=/home/matthew/dev/mdhs/cabal-dev/cabal.config install --verbose=2 --only-dependencies --jobs=1 --ghc-options +RTS -M1024m
Reading available packages...
Choosing modular solver.
@klarh
klarh / intelColorFix
Created December 16, 2013 15:03
Fix for Intel HD Graphics saying it is using 24-bit colors but looking like it's missing some bits somewhere
## requires x11-apps/intel-gpu-tools on gentoo
$ xrandr --output DP1 --set "Broadcast RGB" "Limited 16:235"
# intel_reg_write 0x70008 0xC4002000
# intel_reg_write 0x70180 0xDA004400
$ xrandr --output DP1 --set "Broadcast RGB" "Full"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@klarh
klarh / QC animation.ipynb
Last active July 10, 2019 19:32
Generate a quasicrystal animation using plato-draw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@klarh
klarh / Image MD.ipynb
Last active July 11, 2019 11:35
Generate a movie of an image 'assembling' itself using molecular dynamics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@klarh
klarh / Dockerfile
Last active July 26, 2019 17:46
Docker images to test vispy jupyter notebook backend installation
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
build-essential \
cython3 \
git \
npm \
python3-fontconfig \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@klarh
klarh / README.md
Last active January 30, 2020 00:34
Example flowws-based workflow in a notebook

Launch a binder notebook with the button below:

Binder