Skip to content

Instantly share code, notes, and snippets.

$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
@media (-webkit-min-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 3/2), (min-device-pixel-ratio: 2) {
background-image: sprite-url($icons-retina);

Keybase proof

I hereby claim:

  • I am ambidexterich on github.
  • I am hamburg (https://keybase.io/hamburg) on keybase.
  • I have a public key whose fingerprint is D7EE 399D C369 A9A1 EFAF ABC4 CBF6 0B76 AFCA DEFD

To claim this, I am signing this object:

/*
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll ([email protected])
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
@ambidexterich
ambidexterich / y-combinator.js
Created May 15, 2015 19:57
Y-Combinator in JS for factorization
var Y = function (F) {
return (function (x) {
return F(function (y) {
return (x(x))(y);
});
})(function (x) {
return F(function (y) {
return (x(x))(y);
});
});
@ambidexterich
ambidexterich / hash.js
Created August 31, 2015 21:31
Random String Generator
Array.apply(null, Array(12)).map(function (i) {
var c = Math.floor(Math.random()*2);
return String.fromCharCode(Math.floor(Math.random()*(127-33)+33))[c?'toUpperCase':'toLowerCase']();
}).join('')
AclNotFoundException
ActivationException
AlreadyBoundException
ApplicationException
ArithmeticException
ArrayIndexOutOfBoundsException
AssertionException
AWTException
BackingStoreException
BadAttributeValueExpException
@ambidexterich
ambidexterich / combinators.js
Created February 20, 2018 16:54 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));