Skip to content

Instantly share code, notes, and snippets.

View rockaBe's full-sized avatar

Bernd Nähler rockaBe

  • Babbel
  • Berlin, Germany
View GitHub Profile
@rockaBe
rockaBe / README.md
Last active April 26, 2016 11:48
Flow definition rules

Missing elements:

  • answers to be included in the questions for flows (product_preview or registratioin) need to be defined

  • the selected answer

    • must be validated
    • needs to be remembered

Naming:

@rockaBe
rockaBe / POP-972.md
Last active February 14, 2020 09:10
Serve plans pages under localized subdomains

POP-972: Serve plans pages under localized subdomains

Goal and outlook

Currently plans.spa is a SPA hosted via my.apigateway.lambda which is served via the my.babbel subdomain and does not add to our localized subdomain authority. To improve this, we want to serve them via the localized subdomains e.g. de.babbel or uk.babbel.

Future plans are discussed to also move other SPAs to the localized subdomains e.g. ppf.spa, authentication.spa

Constraints

@rockaBe
rockaBe / auto-node-version-switch.sh
Last active June 16, 2023 10:09
Auto loading node version using fnm from .nvmrc or .node-version file in the current folder
# ZSH
autoload -U add-zsh-hook
# place default node version under $HOME/.node-version
load-nvmrc() {
DEFAULT_NODE_VERSION=`cat $HOME/.node-version`
if [[ -f .nvmrc && -r .nvmrc ]] || [[ -f .node-version && -r .node-version ]]; then
fnm use
elif
[[ `node -v` != $DEFAULT_NODE_VERSION ]]; then
@rockaBe
rockaBe / Gatsby-bootstrap-lifecycle.md
Created January 24, 2021 12:50 — forked from swyxio/Gatsby-bootstrap-lifecycle.md
Gatsby bootstrap lifecycle

Sequence of Gatsby's bootstrap lifecycle with links to source code as of v2.0.0

  1. open and validate gatsby-config (get-config-file.js) 1.5 load themes (swyx added this note July 2019)
  2. load plugins (load-plugins/index.js) from the list given in gatsby-config.js
  3. onPreBootstrap: runs onPreBootstrap if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9