This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (evil-leader/set-key | |
| "e" 'flycheck-next-error | |
| "w" 'flycheck-previous-error | |
| "f" 'projectile-find-file | |
| "prt" 'projectile-regenerate-tags | |
| "c" 'projectile-compile-project | |
| "b" 'projectile-switch-to-buffer | |
| "xc" 'save-buffers-kill-terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " minimal cvim - see the cvim.css file for customizing theme | |
| " | |
| " https://gist.github.com/creichert/31914a6dc517b22f4a21777c463ab4ff | |
| set autoupdategist | |
| let hintcharacters = 'asdfghjklcvbn' | |
| let barposition = "bottom" | |
| let searchalias s = "stackoverflow" | |
| let searchalias g = "google" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SHELL := /bin/bash | |
| foo: ## this is a doc | |
| echo "foo" | |
| .DEFAULT_GOAL := help | |
| .PHONY: help | |
| help: | |
| @IFS=$$'\n' ; \ | |
| help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| workflows: | |
| version: 2 | |
| build-and-test: | |
| jobs: | |
| - build | |
| - build-nightly | |
| - build-lts-11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env stack | |
| {- stack | |
| script | |
| --resolver lts-11.16 | |
| --package bytestring | |
| --package http-conduit | |
| -} | |
| -- usage: ./Main.hs | |
| -- modify the baseUrl and ghcDateVersion to taste |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| ## ensure locale is set during build | |
| ENV LANG C.UTF-8 | |
| ## Haskell environment | |
| RUN echo 'deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main' > \ | |
| /etc/apt/sources.list.d/ghc.list && \ | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6F88286 && \ | |
| apt-get update && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Writing a billing system in Haskell, using Stripe and Heroku | |
| === | |
| *This post is written in literate Haskell, meaning the source can be turned | |
| into a blogpost or a working program. You can view the [source][source]. | |
| [source]: https://gist.github.com/gatlin/7754289 | |
| Normally clients pay me with checks, but recently one informed me that they | |
| really really really like *really really* super prefer some kind of online |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: "3.0.0" | |
| info: | |
| version: 3.0.0 | |
| title: GitHub API v3 | |
| servers: | |
| - url: https://api.github.com | |
| paths: | |
| /users: | |
| get: | |
| summary: List all GitHub users. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: "3.0.0" | |
| info: | |
| version: 1.0.0 | |
| title: Swagger Petstore | |
| license: | |
| name: MIT | |
| servers: | |
| - url: http://petstore.swagger.io/v2 | |
| paths: | |
| /pet: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Data.List | |
| import Data.Bits | |
| -- > 1 | |
| main = print $ foldl xor 0 [1,1,2,2,3,3,4,4,5,5,6,6,7,7,1] |