Skip to content

Instantly share code, notes, and snippets.

Bala Kumar sribalakumar

  • FreshDesk
  • Chennai
Block or report user

Report or block sribalakumar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sribalakumar
sribalakumar / Bootstrap typeahead with Google Auto Suggest
Created Oct 1, 2014
Bootstrap typeahead with Google Auto Suggest
View Bootstrap typeahead with Google Auto Suggest
<label for="auto_suggest">Google Auto Suggest: </label>
<input id="auto_suggest" type="text" width="500">
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.0/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script>
var google_auto_suggest_url = "http://suggestqueries.google.com/complete/search?client=chrome&q=";
$('#auto_suggest').typeahead({
source: function(query, process) {
@sribalakumar
sribalakumar / jQuery Auto Complete consuming Google Suggestion
Created Oct 1, 2014
jQuery Auto Complete consuming Google Suggestion
View jQuery Auto Complete consuming Google Suggestion
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
<script>
var google_suggest_url = "http://suggestqueries.google.com/complete/search?client=chrome&q=";
$(function() {
$("#google-suggest").autocomplete({
source: function(request, response) {
var temp_arr = request.term.split(/[.,]+/); // Regex so that sentences after , or . are treated as new sentence.
You can’t perform that action at this time.