Skip to content

Instantly share code, notes, and snippets.

View eirikurn's full-sized avatar

Eiríkur Heiðar Nilsson eirikurn

View GitHub Profile
@eirikurn
eirikurn / SassMeister-input.scss
Created February 1, 2014 16:19
Generated by SassMeister.com.
// ----
// 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 / utils.js
Created March 31, 2014 15:04
Simple helper to css animate element with class
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 / inlet.js
Created July 29, 2012 21:43
just another inlet to tributary
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)
@eirikurn
eirikurn / react-async-bootstrapper.js
Created March 6, 2018 15:48
Tux Async Middlewares
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 / keybase.md
Created March 27, 2018 11:32
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: