I'm just testing out the using gists for posting blog entires.
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/'); |
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 {
(function boom(){ | |
if (!window.Showdown){ | |
var scr = document.createElement('script'); | |
scr.onload = boom; | |
scr.src = 'https://raw.github.com/github/github-flavored-markdown/gh-pages/scripts/showdown.js'; | |
document.body.appendChild(scr); | |
return; | |
} |
Description of this beer - Ale brewed with natural flavors (honey, cocoa nibs, cocoa powder, ancho chilies, & ground annatto).
This beer isn't the typical bitter beer known from Dogfish Head. Instead the honey comes across strong and lingers with a malty flavor.
The cocoa comes through a little, but isn't nearly as strong as I expected. I don't notice the ancho chilies at all, which disappoints me since that was the flavor that I was hoping for the most.
The white house released a couple of homebrew beer recipes along with a video description of why they're doing some homebrewing in The White House. The article, recipes and video can be found here.
I'm going to take the recipe for the White House Honey Porter and pick up the ingredients from my local homebrew supplier, Listermann's and attempt to brew it. Check back for updates with step-by-step documentation on my brewing experience and what I think of the results.
Looking for a client side javascript developer that can use knockout.js to help build the front end of our application. To show off your skills, we would like the html/css and javascript components of Twitter's Bootstrap library turned into templates that would be useful with knockout.js.
Example alert:
<div data-bind="attr: { class: type }">
<button type="button" class="close" data-dismiss="alert">×</button>
<!-- ko data-bind="text: message" -->
<strong>Warning!</strong> Best check yo self, you're not looking too good.
<!-- /ko -->
</div>
// | |
// Build Bootstrap Docs | |
// --------------------------------------------- | |
// Credit: inspired by @ctalkington | |
module.exports = function(grunt) { | |
// Grunt utilities. | |
var task = grunt.task, | |
file = grunt.file, |
/* | |
* build-bootstrap | |
* https://github.com/jonschlinkert/build-bootstrap | |
* | |
* Copyright (c) 2012 Jon Schlinkert | |
* Credit: inspired by @ctalkington | |
* Licensed under the MIT license. | |
*/ | |
module.exports = function(grunt) { |
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |