Skip to content

Instantly share code, notes, and snippets.

View niklas-r's full-sized avatar
:shipit:
Shipping code, all day, `err` day

Niklas Kahn niklas-r

:shipit:
Shipping code, all day, `err` day
  • Neat Minds
  • Sweden, Stockholm
View GitHub Profile
@niklas-r
niklas-r / flexbox.scss
Created June 30, 2017 10:30 — forked from richardtorres314/flexbox.scss
CSS Flexbox - Sass Mixins
// --------------------------------------------------
// Flexbox SASS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
@mixin flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@niklas-r
niklas-r / userTimingMiddleware.js
Created July 3, 2018 19:45 — forked from vcarl/userTimingMiddleware.js
A User Timing middleware for redux to create performance markers for dispatched actions
const userTiming = () => (next) => (action) => {
if (performance.mark === undefined) return next(action);
performance.mark(`${action.type}_start`);
const result = next(action);
performance.mark(`${action.type}_end`);
performance.measure(
`${action.type}`,
`${action.type}_start`,
`${action.type}_end`,
);