Skip to content

Instantly share code, notes, and snippets.


Enrico Scherlies enryco

View GitHub Profile
enryco / JS through WordPress
Last active Mar 13, 2018
Implement your JavaScript App into Wordpress through creating a Plugin with PHP
View JS through WordPress

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:

enryco / SlowMo Messages
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

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
  shouldScroll: true,
  editChat: false,
  showModal: false,

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

You can’t perform that action at this time.