Skip to content

Instantly share code, notes, and snippets.

@bendo
bendo / Dockerfile
Created January 21, 2022 20:41 — forked from and-pete/Dockerfile
Multi-Stage Docker Build for a Haskell (Stack) Project
# The below is a combination of the following two things:
# 1) This article + corresponding Gist: https://medium.com/permutive/optimized-docker-builds-for-haskell-76a9808eb10b
# 2) This Reddit comment in response to the above:
# - https://www.reddit.com/r/haskell/comments/cl5uod/optimized_docker_builds_for_haskell/evuzccm/
# It is a multi-stage Docker build with 3 stages: 1) dependencies, 2) build, and 3) deploy
# -------------------------------------------------------------------------------------------
# STAGE 1: Dependencies
# -------------------------------------------------------------------------------------------
FROM haskell:8.10.2 as dependencies
# - `$?` - exit status of the last executed command
## echo
a=hi
echo $a \\(planet\\) # hi (planet)
echo '$a (planet)' # $a (planet)
echo "$a (planet)" # hi (planet)
echo # empty line
## variables
@bendo
bendo / gist:ec7e7535c1de92698a88669b8f6c620c
Created October 9, 2017 22:21 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
CmdUtils.CreateCommand({
name: "pdf-search",
icon: "http://www.search-pdf-books.com/i/favicon.ico",
author: {name: "Zdeno Osina", email: "zdeno.osina@gmail.com"},
license: "MPL/LGPL/GPL",
description: "Searches <a href='http://www.search-pdf-books.com'>Search PDF</a> for books matching your words.",
takes: {"search term": noun_arb_text},
preview: function( pblock, input ) {
searchText = jQuery.trim(input.text);
if(searchText.length < 1) {
CmdUtils.CreateCommand({
name: "csfd",
icon: "http://img.csfd.cz/styles/favicon.ico",
author: {name: "Zdeno Osina", email: "zdeno.osina@gmail.com"},
license: "MPL/LGPL/GPL",
description: "Searches the <a href='http://www.csfd.cz'>CSFD</a> for your words.",
takes: {"search term": noun_arb_text},
preview: function( pblock, input ) {
searchText = jQuery.trim(input.text);
if(searchText.length < 1) {