Skip to content

Instantly share code, notes, and snippets.

Andy Merskin docmars

Block or report user

Report or block docmars

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
@docmars
docmars / recursive_parents.js
Last active Mar 14, 2016
Recursively add parent objects to each child (lodash)
View recursive_parents.js
import _ from 'lodash';
/*
* Description:
* Add `.parent` property (with reference to parent object)
* to each array item recursively.
*
* INPUT:
*
* parents []
View gist:5785147
<div class="wrapper">
<div class="grid">
<div class="grid__cell grid__cell--content">
<h1>
Hello world.
</h1>
<div class="grid">
<div class="grid__cell grid__cell--inner">
<h2>
Hello world.
@docmars
docmars / dabblet.css
Created Jul 18, 2012
Darkport Buttons CSS
View dabblet.css
body {
background: #222;
}
#main {
margin: 10%;
}
You can’t perform that action at this time.