JR

Pages

Blog Posts

Powered by Algolia
blog-banner

Blog

abstract-flow

Normalizing Flows

Nov 26, 201910 min readScience, Machine Learning, Statistics
I'm a big fan of Feynman's technique of learning something new by trying to explain it to someone else. So in this post, I'll try to explain normalizing flows (NF), a relatively simple yet powerful…
git-spellchecker

Git Spellchecker

Oct 14, 20192 min readTutorial, Technology
Do you sometimes find yourself typing commit messages in a hurry, immediately pushing to GitHub and only noticing too late that you've made a bunch of typos? It's happened to me often enough that I…
hmc-bnn

Training BNNs with HMC

Sep 5, 20194 min readPython, Machine Learning, Statistics, Science
This post is a guide on how to use the Hamiltonian Monte Carlo (HMC) transition kernel provided by TensorFlow Probability to train Bayesian neural networks (BNN) by sampling from their posterior…
gatsby-interactive-plots

Gatsby Interactive Plots

Aug 30, 20194 min readJS, Tutorial, Web Dev, Science
The possibilities and authoring experience when creating content for the web have advanced by leaps and bounds in recent years. MDX -- the latest in a long line of game-changing innovations -- allows…
useDarkMode

useDarkMode

Jul 1, 20194 min readJS, Tutorial, Web Dev
All the cool kids these days have websites with a dark color scheme. The really cool kids even have a dark and a light mode with a neat little toggle for you to pick your preference. Being regularly…
urlQueryParam

useQueryParam

Jun 15, 20191 min readJS, Tutorial, Web Dev
Here's a straightforward implementation of a React hook that allows you to set, modify and remove URL query parameters. There is already a popular and high quality implementation by Peter Beshai on…
responsive

Sticky Active Smooth Responsive ToC

Jun 11, 20192 min readDesign, JS, Tutorial, Web Dev
Intro This post aims to serve as a guide on how to implement a sticky, active, smooth and responsive table of contents (ToC). It takes a mere 80 lines of JS (styles excluded) and is implemented in…
bell-curves

Hamiltonian Monte Carlo - A Conceptual Introduction

May 1, 201917 min readPhysics, Statistics, Science
This post is without original content, providing merely a summary of the first 3 sections of Michael Betancourt 's excellent introduction to Hamiltonian Monte Carlo . Most images were taken from…
conda-python-robot

Conda Auto Env

Apr 23, 20191 min readTutorial, Python
If you're like me, you're tired of manually having to activate your conda environment every time you switch between Python projects. Since you're reading this, you may even have started googling for…
js-media-queries

JS media queries with React hooks

Apr 8, 20192 min readWeb Dev, Tutorial, JS
This post assumes you're using React (16.8 or later). One thing I like about styled-components is that it enables concise and declarative media queries (granted, regular media queries are already…
draft-content

Exclude drafts from production in Gatsby

Mar 19, 20191 min readWeb Dev, Tutorial, JS
Kyle Mathews who created Gatsby started a discussion about how to exclude files during the build process for the production version of a site. You might want to do this if you have some blog posts…
google-maps+react-hooks

Google Maps + React Hooks

Mar 19, 20192 min readWeb Dev, Tutorial, JS
Had to share this one since it's so nice and simple. If you're looking for a drop-in, zero-dependency Google Maps React component, look no further. To use it, simply grab a free Google Maps API key…
nature-photos-masonry

React Hooks Masonry

Mar 14, 20191 min readDesign, Web Dev, Tutorial, JS
Now that we have React Hooks, so many components can (and should) be rewritten in a more succinct, readable and maintainable manner ( despite what Dan said at React Conf ). A perfect candidate for…
gatsby+disqus

Gatsby Blog with Disqus comments

Mar 3, 20193 min readWeb Dev, Tutorial, JS
If you’re running a Gatsby blog (or any React-powered blog for that matter) and you’ve started adding some content to it, the next thing to think about is how to increase engagement among your…
magnifying-glasses

What is renormalization?

Feb 23, 20193 min readPhysics, Science
I want to give an intuitive understanding of the process of renormalization and why its useful. But to that, I first need to introduce the context in which the need for renormalization arose…
solar-panda

China's Push for Solar

Jan 29, 20191 min readTechnology, Future, Sustainability
This is a follow-up to my last post in which I claimed that solar cells and batteries will lead us to sustainability far cheaper and faster than most people realize at this point. Based on this…
tesla-battery

Batteries + Solar Rule!

Jan 21, 20193 min readTechnology, Future, Sustainability
Fair warning: This is going to be my most self-righteous post to date. Finally people are waking up to what I've been saying since 2008 : batteries are the future! Combined with solar cells they are a…
modal

React Hooks Modal

Jan 13, 20192 min readJS, Web Dev, Tutorial
What to do on a cold and wet January weekend? Why not check out the new React alpha (16.8) . The one with Hooks as it's come to be called. All it took was a little skimming through the docs…
bayesian-optimization

Two-Loop Hyperparameter Optimization

Nov 23, 20181 min readMachine Learning, Python, Tutorial, Statistics
I recently started using Scikit-Optimize ( skopt for short) to run Bayesian optimization on the hyperparameters of a set of fully-connected neural networks. The hyperparameters I optimized were the…
masonry

Masonry Layout with CSS Grid

Nov 14, 20181 min readDesign, Web Dev, Tutorial, JS
This is no longer a good way to implement a modal in React. With the recent introduction of React Hooks, I wrote a new Masonry component that's simpler and more robust. Back in early January, Wes…
gatsby-algolia-search

Custom search with Algolia in Gatsby

Nov 2, 20185 min readWeb Dev, Tutorial, JS
This post is a guide on how to write a React component that implements custom search powered by Algolia on a Gatsby site. You can see the result in action by clicking on the search icon in the top…
gatsby+styled-components

Brave new world

Jul 27, 20181 min readWeb Dev, JS
Welcome to my new blog! Gone is my former WordPress site at janosh-riebesell.com. This is the first post on a new site I created myself. It's JavaScript from head to heel using the amazing site…
© 2020 - Janosh RiebesellRSSThis site is open source
Powered by