Fantasy Land Specification Cheatsheet
Algebra | Methods |
---|---|
Functor | map |
Apply | ap, map |
Applicative | of, ap, map |
Chain | chain, ap, map |
Algebra | Methods |
---|---|
Functor | map |
Apply | ap, map |
Applicative | of, ap, map |
Chain | chain, ap, map |
# press space + b and connect the usb port | |
# build | |
docker run -e keymap=iso_vim_arrow -e keyboard=dz60 --rm -v $('pwd'):/qmk:rw edasque/qmk_firmware | |
# flash | |
sudo dfu-programmer atmega32u4 erase --force | |
sudo dfu-programmer atmega32u4 flash dz60_iso_vim_arrow.hex | |
sudo dfu-programmer atmega32u4 reset |
[ | |
{ | |
"key": "ctrl+shift+s", | |
"command": "workbench.action.files.saveAll" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "extension.aceJump", | |
}, | |
{ |
(<$>), which lifts a single-argument function into a Functor | |
(<*>), which chains a multi-argument function through an Applicative | |
(=<<), which binds a function that enters a Monad onto an existing computation |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
name: Haskell CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/cache@v1 |
#!/bin/bash | |
# Request of <https://www.mvg.de/dienste/verbindungen.html> | |
set -eu pipefail | |
url="https://www.mvg.de/api/fahrinfo/routing/?fromStation=de:09162:2&toStation=de:09179:6180&transportTypeBus=false&transportTypeUnderground=false&transportTypeBoat=false&transportTypeTram=false&transportTypeCable=false&changeLimit=0&sapTickets=true" | |
json=$(curl -s "$url" || '') | |
if [[ $json == "" ]]; then | |
echo "$(tput setaf 3)Failed$(tput sgr 0)" | |
exit 1 |