This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window
module Floyd | |
where | |
import Control.Applicative ( (<$>) ) | |
import Control.Exception ( assert ) | |
import Control.Monad ( forM_, when ) | |
import Data.Array.IArray | |
import Data.Array.MArray | |
import Data.Array.ST | |
import Data.Maybe ( fromMaybe ) |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{- | |
Explores Free Monads (DSLs) and Cofree Comonads (interpreters) and | |
their relationship. | |
Most of the code in this file comes from (1) below. Only minor | |
modifications are made - semantics are preserved. |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowimport Data.Maybe | |
import Control.Monad | |
import Control.Applicative | |
import Graphics.Gloss | |
import Graphics.Gloss.Interface.Pure.Game | |
type Coordinates = (Int, Int) | |
data Player = Nought | Cross |
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html
#! /usr/bin/env stack | |
-- stack --resolver lts-18.8 script | |
{-# LANGUAGE OverloadedStrings #-} | |
{- | |
This is a handy illustration of converting between five of the commonly-used | |
string types in Haskell (String, ByteString, lazy ByteString, Text and lazy | |
Text). |
These are manual instructions on enabling SSH access on your Steam Deck, adding public key authentication, and removing the need for a sudo
password for the main user (deck
).
This gist assumes the following:
ssh
, ssh-keygen
, and ssh-copy-id
NOTE: @crackelf on reddit mentions that steamOS updates blow away everything other than /home
, which may have the following effects:
systemd
config for sshd.service
, which would prevent the service from automatically starting on bootsudoers.d
config, which would reenable passwords for sudo
This thread asks why more Python developers couldn't instead be using Haskell: https://discourse.haskell.org/t/commercial-haskell-should-go-after-python-julia-not-rust/6964/2
One of the points made in this thread, is that there is a sizeable class of Python programmers for which the trope "Python programmers will be scared of monads!" doesn't apply. I thought I would ask some of the people I know that use Python why they don't use Haskell.
Some notes about the demographic: