Skip to content

Instantly share code, notes, and snippets.

Eiríkur Heiðar Nilsson eirikurn

Block or report user

Report or block eirikurn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am eirikurn on github.
  • I am eirikurn (https://keybase.io/eirikurn) on keybase.
  • I have a public key ASBuHhpQMc2XHSW93TsY7Nz0M2phBu9NLGdr0Jiayye4PQo

To claim this, I am signing this object:

View react-async-bootstrapper.js
import asyncBootstrapper from 'react-async-bootstrapper'
const bootstrapper = () => () => {
let firstRender = true
return async next => {
const app = await next()
if (firstRender) {
firstRender = false
await asyncBootstrapper(app)
@eirikurn
eirikurn / utils.js
Created Mar 31, 2014
Simple helper to css animate element with class
View utils.js
var utils = {
/**
* Assigns an animation class to the selected elements, removing it when
* the animation finishes.
* @param {jQuery} el The jQuery element.
* @param {string} name Class name to add.
* @param {Function} cb Callback function when animation finishes.
* @param {Boolean} nowait Call the callback without waiting.
* @param {String} child Child element that runs the animation or transition.
@eirikurn
eirikurn / SassMeister-input.scss
Created Feb 1, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
.one {
@media (width: 400px) {
font-size: 1.2em;
@media print and (width: 400px) {
color: blue;
@eirikurn
eirikurn / inlet.js
Created Jul 29, 2012
just another inlet to tributary
View inlet.js
var w = 698,
h = 500,
root = {},
data = [root],
tree = d3.layout.tree().size([w - 20, h - 20]),
diagonal = d3.svg.diagonal(),
duration = 750;
var vis = d3.select("svg")
.attr("width", w)
You can’t perform that action at this time.