# 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
Original Bootstrap code :: http://twitter.github.com/bootstrap/assets/js/bootstrap-typeahead.js
Original Fork code :: https://gist.github.com/1866577
This Fork (you are currently viewing) :: https://gist.github.com/2960885
##Original Fork adds:##
- Ajax source
This file contains 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
#! /path/to/node | |
var haibu = require('/path/to/haibu'); | |
var client = new haibu.drone.Client(); | |
process.stdin.resume(); | |
process.stdin.on('data', function(data){ | |
var package = JSON.parse(data.toString()); |
This file contains 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
/* | |
Given the following html | |
<nav> | |
<ul> | |
<li class="home"><a>Home</a></li> | |
<li class="about"><a>About</a></li> | |
<li class="blog"><a>Blog</a></li> | |
<li class="contact"><a>Contact</a></li> | |
</ul> | |
</nav> |
This file contains 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
var extensionMethods = { | |
slide: function (type, next) { | |
if(!$.support.transition && this.$element.hasClass('slide')) { | |
this.$element.find('.item').stop(true, true); //Finish animation and jump to end. | |
} | |
var $active = this.$element.find('.active') | |
, $next = next || $active[type]() | |
, isCycling = this.interval | |
, direction = type == 'next' ? 'left' : 'right' |
This file contains 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
[www] | |
ping.path = /ping |
This file contains 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
/* | |
Copy doc JSON exporter for Google Drive spreadsheets. | |
Instructions: | |
1. Open the copy doc spreadsheet | |
2. Make sure the first row contains a column with the value “id” and that there’s at least one column with a locale value | |
2. Go to Tools/Script Editor… | |
3. (Optional) create a new script file and name it something funny | |
4. Paste the code from this file |
This file contains 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/python | |
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions. | |
# Michael Davis ([email protected]) | |
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import select |
This file contains 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
import logging | |
from traceback import format_exc | |
import datetime | |
from schedule import Scheduler | |
logger = logging.getLogger('schedule') | |
OlderNewer