# 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 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
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
xrandr --addmode VGA1 1920x1080_60.00 | |
xrandr --output VGA1 --mode 1920x1080_60.00 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Node-Link Tree</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.25.0"></script> | |
<style type="text/css"> | |
circle.node { |
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
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".rvmrc" ]; then | |
source "$rvm_path/scripts/rvm" | |
source ".rvmrc" | |
fi |
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
/* install connect first */ | |
// npm install connect | |
var connect = require('connect'); | |
connect.createServer( | |
connect.static(__dirname) | |
).listen(8080); | |
/* run as localhost:8080/assets/www/index.html */ |
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
{ | |
"title": "Logstash Search", | |
"rows": [ | |
{ | |
"title": "Options", | |
"height": "50px", | |
"editable": true, | |
"collapse": false, | |
"collapsable": true, | |
"panels": [ |
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
{ | |
"title": "Events", | |
"height": "350px", | |
"editable": true, | |
"collapse": false, | |
"collapsable": true, | |
"panels": [ | |
{ | |
"loading": false, | |
"error": false, |
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
TypeError: Cannot read property '_source' of undefined | |
at http://example.com/panels/dashcontrol/module.js:209:44 | |
at i (http://example.com/common/lib/angular.min.js:76:207) | |
at http://example.com/common/lib/angular.min.js:76:440 | |
at Object.e.$eval (http://example.com/common/lib/angular.min.js:87:39) | |
at Object.e.$digest (http://example.com/common/lib/angular.min.js:84:474) | |
at Object.e.$apply (http://example.com/common/lib/angular.min.js:87:198) | |
at e (http://example.com/common/lib/angular.min.js:94:196) | |
at p (http://example.com/common/lib/angular.min.js:97:332) | |
at XMLHttpRequest.v.onreadystatechange (http://example.com/common/lib/angular.min.js:98:252) |
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
TypeError: Cannot call method 'toString' of undefined | |
at Object.<anonymous> (http://example.herokuapp.com/panels/table/module.js:272:14) | |
at e (http://example.herokuapp.com/common/lib/angular.min.js:67:353) | |
at xa.| (http://example.herokuapp.com/common/lib/angular.min.js:128:275) | |
at Object.get (http://example.herokuapp.com/common/lib/angular.min.js:66:506) | |
at Object.e.$digest (http://example.herokuapp.com/common/lib/angular.min.js:85:53) | |
at Object.e.$apply (http://example.herokuapp.com/common/lib/angular.min.js:87:198) | |
at Array.<anonymous> (http://example.herokuapp.com/panels/hits/module.js:245:21) | |
at x (http://example.herokuapp.com/common/lib/LAB.min.js:5:3686) | |
at Object.e.wait (http://example.herokuapp.com/common/lib/LAB.min.js:5:4439) |
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
.filter('highlight', function() { | |
return function(text) { | |
if (text.toString().length > 0 && !_.isUndefined(text) && !_.isNull(text)) { | |
return text.toString(). | |
replace(/&/g, '&'). | |
replace(/</g, '<'). | |
replace(/>/g, '>'). | |
replace(/\r?\n/g, '<br/>'). | |
replace(/@start-highlight@/g, '<code class="highlight">'). | |
replace(/@end-highlight@/g, '</code>') |
OlderNewer