Skip to content

Instantly share code, notes, and snippets.

View dalgard's full-sized avatar

Kristian Dalgård dalgard

  • Various Productions
  • Aarhus, Denmark
View GitHub Profile
@kerns
kerns / gist:5845810
Created June 23, 2013 17:30
Combining Breakpoints in Bourbon/Neat's media mixin
In a nut shell... it would be nice if instead of
@include media ($tablet) {
text-align: right;
}
@include media ($desktop) {
text-align: right;
}
@davidaurelio
davidaurelio / create.js
Created February 22, 2011 14:48
Constructor-less inheritance for ECMAScript 5
var BaseObject = {
create: function create() {
var instance = Object.create(this);
instance._construct.apply(instance, arguments);
return instance;
},
extend: function extend(properties, propertyDescriptors) {
propertyDescriptors = propertyDescriptors || {};
var a = 1
this.b = 2
global.c = 3
d = 4
exports.e = 5
console.log({a: {global:global.a, this:this.a, exports:exports.a, t:typeof a}
,b: {global:global.b, this:this.b, exports:exports.b, t:typeof b}
,c: {global:global.c, this:this.c, exports:exports.c, t:typeof c}
,d: {global:global.d, this:this.d, exports:exports.d, t:typeof d}