- 1/3 cup Hellmann’s Mayonnaise
- 1 tsp EVOO
- ½ tsp Fresh Squeezed Lemon Juice
- 1/8 tsp Garlic, Chopped
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 {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/'); |
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']);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
module.exports = function(grunt) { | |
var config = grunt.file.readJSON('path/to/blog/config.json'); | |
grunt.initConfig({ | |
config: config, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
stage: 'assemble:post:pages' | |
}; | |
var plugin = function(params, next) { | |
var buildPaginationInfo = function() { | |
var pages = params.assemble.options.pages; |
NewerOlder