Skip to content

Instantly share code, notes, and snippets.

View doowb's full-sized avatar
:octocat:
Creating something awesome!

Brian Woodward doowb

:octocat:
Creating something awesome!
View GitHub Profile

Cooper's Hawk Chopped deviled eggs & toast

Ingredients:

Parmesan Spread (yields 1 cup)

  • 1/3 cup Hellmann’s Mayonnaise
  • 1 tsp EVOO
  • ½ tsp Fresh Squeezed Lemon Juice
  • 1/8 tsp Garlic, Chopped
@doowb
doowb / draft_doowb_bootstrap_popoverex.md
Created September 4, 2012 04:50
twitter bootstrap popover extension

Extending Twitter's Bootstrap Popover plugin

We had a goal of extending Twitter's Bootstrap popover plugin to allow us to easily add different css class to the popover to control the styling of the popover. The examples provided in this article show how to create the extension plugin and a way to use the extension to change the background color and add a border to the title.

First take a look at the css provided in popoverex.css.

@import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css');

.popover-info {
@doowb
doowb / Gruntfile.js
Created May 24, 2014 01:11
Loading page data from json files and dynamically building page objects to pass into Assemble options.
'use strict';
var _ = require('lodash');
var path = require('path');
module.exports = function(grunt) {
// load the recipe template from the desired path
var recipeTemplate = grunt.file.read('./src/templates/pages/recipe.hbs');
// expand the data files and loop over each filepath

Keybase proof

I hereby claim:

  • I am doowb on github.
  • I am doowb (https://keybase.io/doowb) on keybase.
  • I have a public key whose fingerprint is 7BCB 486E B809 F812 E0EC B3D7 FDC4 D02B 2042 C8F0

To claim this, I am signing this object:

module levelup
version
downloads in the
last 30 days
total downloads
level-sublevel ~0.19.0 151,300 1,226,226
pouchdb 1.3.8 124,983 1,162,731
browserify-fs ^0.18.2 100,027 458,142
pouchdb-adapter-leveldb-core 1.3.8 97,566 419,461
level-packager ~1.3.0 74,165 758,119
merkle-patricia-tree ^1.2.1 13,231 127,025
dynalite ^1.3.3 10,553 258,090
mosca ^1.3.8 9,513 171,844
@doowb
doowb / server.js
Created August 9, 2012 23:22
Simple node.js server
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
@doowb
doowb / README.md
Last active March 17, 2016 13:33
Use es2015 javascript generators as assemble tasks.

Using es2015 javascript generators in assemble tasks.

Assemble is now able to directly take a generator function as a task function. This removes the need for a callback when running synchronous code inside tasks.

From

app.task('load', function(cb) {
  app.layouts(['src/layouts/**/*.hbs']);
 app.partials(['src/partials/**/*.hbs']);
<%= foo %>
<%= foo.bar %>
<%= foo.bar.baz %>
<%= foo() %>
<%= foo.bar() %>
<%= _.foo() %>
<%= _.foo(bar) %>
<%= _.foo("baz") %>
@doowb
doowb / Gruntfile.js
Created January 17, 2014 02:54
Generating assemble targets.
var _ = require('lodash');
module.exports = function(grunt) {
var config = grunt.file.readJSON('path/to/blog/config.json');
grunt.initConfig({
config: config,
@doowb
doowb / assemble-content-changer.js
Created October 31, 2013 17:47
Assemble plugin to modify page contents.
var options = {
stage: 'assemble:post:pages'
};
var plugin = function(params, next) {
var buildPaginationInfo = function() {
var pages = params.assemble.options.pages;