# 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
this.server = new Server(port); | |
ServletContextHandler context = new ServletContextHandler(this.server, "/", ServletContextHandler.SESSIONS); | |
context.addServlet(new ServletHolder(new DispatcherServlet()), "/*"); |
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
// Enable Strict Mode and remove errors relating to global vars | |
/*global $:false, jQuery:false, google:false, _gaq:false, _:false */ | |
"use strict"; | |
goog.provide('com.tivity.Main'); | |
goog.require('goog.ui.Component'); | |
goog.require('goog.dom'); | |
// Composites |
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
package com.michelboudreau.db; | |
import com.amazonaws.services.dynamodb.AmazonDynamoDB; | |
import com.amazonaws.services.dynamodb.AmazonDynamoDBClient; | |
import com.amazonaws.services.dynamodb.datamodeling.*; | |
import com.amazonaws.services.dynamodb.model.BatchGetItemRequest; | |
import com.amazonaws.services.dynamodb.model.BatchGetItemResult; | |
import com.amazonaws.services.dynamodb.model.KeysAndAttributes; | |
import org.springframework.beans.factory.annotation.Autowired; |
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
#!/usr/bin/env bash | |
BOLD=`tput bold` | |
RED=`tput setaf 1` | |
GREEN=`tput setaf 2` | |
YELLOW=`tput setaf 3` | |
RESET=`tput sgr0` | |
function show_help { | |
echo "${BOLD}Hashicorp Application Install Script${RESET} - please run in sudo" |