Skip to content
View mandrill-test.js
// Generated by CoffeeScript 1.10.0
(function() {
var Exports, Inbound, Internal, Ips, Messages, Metadata, OPTS, Rejects, Senders, Subaccounts, Tags, Templates, Urls, Users, Webhooks, Whitelists, https;
https = require('https');
OPTS = {
host: '',
port: 443,
prefix: '/api/1.0/',
View .gitignore

Here is how to run Ghost as middleware in a /blog setup.

  1. Create a new app (or add ghost to your existing express app)
npm install express ghost
  1. Copy the node_modules/ghost/content/ folder to your app's folder as content/

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 42d2468300dabf5fd05a %}

All you need to do is copy and paste the Gist's ID from the URL (here 42d2468300dabf5fd05a), and add it to a gist tag surrounded by {% and %}.

View .travis.yml
sudo: false
- tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH
- mkdir -p data/db
- mongod --dbpath=data/db &
View index.html
<!DOCTYPE html>
<title>Bootstrap In Practice - Landing Page Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap -->
<link href="//" rel="stylesheet">
<link href="//" rel="stylesheet" />

This won’t get into setting up multisite in wordpress, but it will help you set up multisite domain mapping on a grid server from media temple. If you need to see a good intro article on setting up multisite mode in wordpress, check this article out or this article for a good multisite .htaccess intro.

First, install WordPress MU Domain Mapping plugin, and follow the instructions for setting that up.

Now, to add a new domain to media temple that will show up on your site, the big catch is to redirect this domain to the existing main domain.

For example, is the main root domain, and I am going to create

  1. Add the domains you’d like to use ( in this example) as alternate domains in the AccountCenter.
  2. Log into your (gs) via SSH, move into the domains direc
View app.js
* Welcome to Pebble.js!
* This is where you write your app.
var UI = require('ui');
var Vector2 = require('vector2');
var main = new UI.Card({

This days I’ve been playing with hello.js. Hello is a A client-side Javascript SDK for authenticating with OAuth2 web services.

It’s pretty straightforward to use and well explained at documentation. I want to use it within AngularJS projects. OK, I can include the library and use the global variable “hello”, but it isn’t cool.

Imagine one simple AngularJS application

(function () {
    angular.module('G', [])
        .config(function ($stateProvider, $urlRouterProvider) {
View chat.js
var chatManager = function(datamcflyRef) {
this.datamcflyRef = datamcflyRef;
chatManager.prototype = {
chats: [], // collection of chats in progress
getChat: function(fromNumber) {
// finds or creates a chat from a particular recipient
var foundChat = null;
Something went wrong with that request. Please try again.