Enrico Scherlies | B.Eng | Berlin
Full-Stack Engineer | Elm, TypeScript | Functional Programming
I am a full-stack engineer with six years of web app experience.
I love functional programming and my split keyboard with Colemak(-DH).
-- | An ascii progress bar. | |
-- | Should be used with a monospace font. | |
-- | Renders like this: | |
-- | | |
-- | [============ ] | |
-- | | |
-- | or half steps | |
-- | | |
-- | [======- ] | |
-- | |
module Context exposing (..) | |
type Context a b | |
= WithContext (a -> b) | |
withContext : (a -> b) -> Context a b | |
withContext = | |
WithContext |
#!/bin/bash | |
# If anything goes south anywhere, exit with error code 1 | |
set -euo pipefail | |
# The directory of the file | |
BASEDIR=$(realpath $(dirname "$0")) | |
{-| Helper function to partially apply an "infix" a function. Same as flip but is more comprehensable for some cases, imho. | |
Unfortunatly you can not to partial function application with infix functions, let a lone use any function as infix. | |
So this is not possible in elm, which is unfortunate because the Haskell way is much more tacit. | |
-- Haskell, not possible in elm | |
List.map (- 10) [ 10, 20, 30 ] --> [0,10,20] |
module Context exposing (..) | |
import Element exposing (Color, Element, el, rgba, text) | |
import Element.Background | |
import Element.Font | |
import UI.Theme exposing (Appereance(..)) | |
{-| Lang Module | |
-} |
When developing a React and Firebase powered realtime chat app, a goal was to stretch the incoming messages so that each message is displayed 500ms after another exept the first message, which is displayed instantly. This ensueres readability as it flattens out peaks of incoming messages.
const SLOMO_DELAY = 500
const INITIAL_STATE = {
shouldScroll: true,
editChat: false,
showModal: false,
As a JS Developer I wanted to integrate my (React) App into a Wordpress Site. After researching and trying different solutions I ended up creating my own plugin with a function which handles everything. It also adds a shortcode that can now easily insertet in any WP page or post. As it is a plugin, it is easy to maintain.
This is a slightly generalized version of my plugin im using for my react app:
<?php
/*