Skip to content

Instantly share code, notes, and snippets.

@moneill
moneill / gist:3311159
Created August 10, 2012 04:55
History API
$(document).ready(function(){
$("input#search").bindWithDelay("keyup", function() {
term = $(this).val();
form = $(this).parent();
action = form.attr('action') + "?" + form.find('input[name!=utf8]').serialize();
if(term == '' || term.length >= 2){
$.get(action, null, null, 'script');
history.replaceState(null, "", action);
}
@moneill
moneill / gist:13ff4140b372407af7aa
Created October 8, 2014 21:37
Sample Kibana Dashboard
{
"title": "Logstash Search",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,