Skip to content

Instantly share code, notes, and snippets.

Tobias Lins tobiaslins

View GitHub Profile
@timolins
timolins / react-homey-draft.js
Last active Jun 14, 2019
React Homey – declerative home automation
View react-homey-draft.js
/*
Disclaimer: This is just a drafted api and not real (yet).
*/
import ReactHomey, {
// Components
Light,
Fan,
Room,
// Hooks
@ugiacoman
ugiacoman / Client-Loading-Example.md
Last active May 23, 2020
SSR + CSR using next.js
View Client-Loading-Example.md

Whether your component relies on client-side features or you are using 3rd party components that are not designed for server-side rendering, sometimes you'll want to defer rendering until on the client. For our example, we'll be using react-chart-2 to load a Doughnut chart.

Doughnut

You'll need a next project and to install chart.js + react-chartjs-2.

$ npm install --save chart.js react-chartjs-2  
@cvrebert
cvrebert / css_regression_testing.md
Last active Jun 5, 2020
Survey of screenshot-based CSS testing tools
View css_regression_testing.md

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
You can’t perform that action at this time.