Skip to content

Instantly share code, notes, and snippets.

View bjarkevad's full-sized avatar

Bjarke Vad Andersen bjarkevad

View GitHub Profile
From 6ee21081ad9431761934ce005139a2abd76f0377 Mon Sep 17 00:00:00 2001
From: Bjarke Vad Andersen <[email protected]>
Date: Fri, 23 Mar 2018 17:41:03 +0100
Subject: [PATCH] Port to psc-package and parcel
---
bower.json | 15 ---------------
package.json | 11 ++++++-----
psc-package.json | 12 ++++++++++++
3 files changed, 18 insertions(+), 20 deletions(-)
bindkey '^P' up-history
bindkey '^N' down-history
bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
bindkey '^w' backward-kill-word
bindkey '^r' history-incremental-search-backward
[Match]
Name=wlp3s0
[Network]
DHCP=both
DNS=8.8.8.8
DNS=8.8.4.4
Starting ENSIME server: /usr/lib/jvm/java-7-openjdk/bin/java -classpath /usr/lib/jvm/java-7-openjdk/lib/tools.jar:/home/bjarke/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.5.jar:/home/bjarke/.ivy2/cache/org.ensime/ensime_2.11/jars/ensime_2.11-0.9.10-SNAPSHOT.jar:/home/bjarke/.ivy2/cache/org.ensime/server_2.11/jars/server_2.11-0.9.10-SNAPSHOT.jar:/home/bjarke/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.5.jar:/home/bjarke/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.5.jar:/home/bjarke/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.3.jar:/home/bjarke/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.3.jar:/home/bjarke/.ivy2/cache/org.ensime/api_2.11/jars/api_2.11-0.9.10-SNAPSHOT.jar:/home/bjarke/.ivy2/cache/com.github.stacycurl/pimpathon-core_2.11/jars/pimpathon-core_2.11-1.2.0.jar:/home/bjarke/.ivy2/cache/com.danieltrinh/scalariform_2.11/jars/scalariform_2.11-0.1.
"mdd" 'haskell-debug
"mdb" 'haskell-debug/break-on-function
"mdn" 'haskell-debug/next
"mdp" 'haskell-debug/previous
"mdB" 'haskell-debug/delete
"mdc" 'haskell-debug/continue
"mda" 'haskell-debug/abandon
"mdr" 'haskell-debug/refresh
(defun minibuffer-keyboard-quit ()
"Abort recursive edit.
In Delete Selection mode, if the mark is active, just deactivate it;
then it takes a second \\[keyboard-quit] to abort the minibuffer."
(interactive)
(if (and delete-selection-mode transient-mark-mode mark-active)
(setq deactivate-mark t)
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*"))
(abort-recursive-edit)))
(define-key evil-normal-state-map [escape] 'keyboard-quit)

Keybase proof

I hereby claim:

  • I am bjarkevad on github.
  • I am bjarke (https://keybase.io/bjarke) on keybase.
  • I have a public key whose fingerprint is 2799 8B54 93B3 8A01 42C5 0CBF 944B 10DD B40A EB31

To claim this, I am signing this object:

import Data.Binary.Put
import GHC.Word
data HeartBeat = HeartBeat {
typet :: Word8,
autopilot :: Word8,
basemode :: Word8,
custommode :: Word32,
systemstatus :: Word8,
version :: Word8

This is my recommended path for learning Haskell.

Something to keep in mind: don't sweat the stuff you don't understand immediately. Just keep moving.

Primary course

Getting started (do you have a compiler installed yet?)

Ubuntu users -> PPA

%Datamatrix D:
D = [ -6.5 -6.5 -6.5 -6.5 -2.5 -2.5 -.75 -.75 3.25 3.25 4.5 4.5 6.5 6.5 6.5 6.5; ...
-2 -2 .5 .5 .5 .5 2 2 2 2 .5 .5 .5 .5 -2 -2; ...
-2.5 2.5 2.5 -2.5 -2.5 2.5 -2.5 2.5 -2.5 2.5 -2.5 2.5 -2.5 2.5 2.5 -2.5; ...
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1;...
];
%Adjency matrix
A =[0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1;...