Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Enrico Scherlies enryco

🎯
Focusing
View GitHub Profile
View CV.md

Enrico Scherlies, B.Eng. Full-Stack Engineer and former CTO
Based in Berlin

I am a full-stack engineer with a focus on backend. I have over three years of experience and been a CTO of my startup Kitabote.

I love Functional Programming and Colemak(-DHm)

Work Experience

@enryco
enryco / SlowMo Messages Algorithm.md
Last active May 5, 2018
Algorithm for Showing a constant stream of incoming messages, buffered and display with a delay to optimise reading.
View SlowMo Messages Algorithm.md

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.

First, the Complete Snipped:

const SLOMO_DELAY = 500
const INITIAL_STATE = {
  shouldScroll: true,
  editChat: false,
  showModal: false,
@enryco
enryco / JS through WordPress Plugin.md
Last active Mar 13, 2018
Implement your JavaScript App into Wordpress through creating a Plugin with PHP
View JS through WordPress Plugin.md

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
/*
You can’t perform that action at this time.