# 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
;; Converts Bootstrap HTML into ClojureScript Om code | |
;; Formats output as well | |
;; Useful when you want to mock a Bootstrap layout but then convert to ClojureScript Om code. | |
(ns com.seltzer1717.term.server.parsehtml | |
(:import | |
(java.io | |
FileReader | |
FileWriter | |
BufferedReader | |
BufferedWriter) |
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
#!/bin/sh | |
while true; | |
do | |
clear | |
git log \ | |
--graph \ | |
--all \ | |
--color \ | |
--date=short \ | |
-10 \ |
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
// Backbone.js 0.5.3 | |
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc. | |
// Backbone may be freely distributed under the MIT license. | |
// For all details and documentation: | |
// http://documentcloud.github.com/backbone | |
(function(){ | |
// Initial Setup | |
// ------------- |