Skip to content

Instantly share code, notes, and snippets.

View abhisack's full-sized avatar

Abhishek Sachan abhisack

View GitHub Profile
@csswizardry
csswizardry / email.md
Last active September 5, 2018 14:31
I frequently get asked about over-abstracted CSS, and ‘can CSS be too modular’, so I thought I’d publish this anonymised email I received, along with my reply.
@andersonfreitas
andersonfreitas / derivative.js
Created April 18, 2014 17:43
derivative in js
function derivative(f) {
var h = 0.001;
return function(x) { return (f(x + h) - f(x - h)) / (2 * h); };
}
console.log(" cos(2) = " + Math.cos(2));
console.log("-sin(2) = " + Math.sin(2));
console.log("(d cos/dx)(2) = " + derivative(Math.cos)(2));
function f(x) { return Math.pow(x, 3) + 2 * x + 1; };
@pankajparashar-zz
pankajparashar-zz / background.md
Last active December 24, 2015 05:49
Effective shorthand CSS techniques. Fork this gist to add more and let me know!

Case 1 - All the background details explicitly specified.

/* syntax */
background: [background-image]
            [background-position]
            [background-size]
            [background-repeat]
            [background-attachment]
 [background-origin]