# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
This file contains hidden or 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
| // Basic XMPP bot example for HipChat using node.js | |
| // To use: | |
| // 1. Set config variables | |
| // 2. Run `node hipchat_bot.js` | |
| // 3. Send a message like "!weather 94085" in the room with the bot | |
| var request = require('request'); // github.com/mikeal/request | |
| var sys = require('sys'); | |
| var util = require('util'); |
This file contains hidden or 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
| /*jshint globalstrict:true */ | |
| /*global angular:true */ | |
| 'use strict'; | |
| angular.module('demo', [ | |
| 'demo.controllers', | |
| 'demo.directives', | |
| 'elasticjs.service' | |
| ]); |
On DigitalOcean, as you go up the plan, you get higher per-core price as well.
https://www.digitalocean.com/pricing
$5 1 core - $5/core
$10 1 core - $10/core
This file contains hidden or 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
| # coding=UTF-8 | |
| from __future__ import division | |
| import re | |
| # This is a naive text summarization algorithm | |
| # Created by Shlomi Babluki | |
| # April, 2013 | |
| class SummaryTool(object): |
This file contains hidden or 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
| /* Initialize Google Publisher Tags API - Docs: http://goo.gl/ZqOiy */ | |
| var gptadslots=[]; | |
| var googletag = googletag || {}; | |
| googletag.cmd = googletag.cmd || []; | |
| (function(){ var gads = document.createElement('script'); | |
| gads.async = true; gads.type = 'text/javascript'; | |
| var useSSL = 'https:' == document.location.protocol; | |
| gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; | |
| var node = document.getElementsByTagName('script')[0]; | |
| node.parentNode.insertBefore(gads, node); |