Skip to content

Instantly share code, notes, and snippets.

View harish-r's full-sized avatar

Harish R harish-r

  • A10 Networks, Inc.
  • San Jose, CA
View GitHub Profile
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
@harish-r
harish-r / d3scatterzoompan.html
Created November 30, 2018 03:29
Demo of Zoom and Pan in a Scatterplot using D3
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!-- load the d3.js library -->
<script src="https://d3js.org/d3.v4.min.js"></script>
{
"cmd": ["/usr/local/bin/node", "$file"],
"selector": "source.js"
}
{
"cmd": ["javac \"$file_name\" && java \"$file_base_name\""],
"shell": true,
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
{
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
@harish-r
harish-r / openstack_kolla.sh
Last active February 26, 2017 08:08
Openstack Kolla Install
#! /bin/bash
# Script to install Openstack Kolla (Mitaka Release) in Ubuntu 16.04
# Script START
# Upgrade to latest kernel
apt-get install -y linux-image-generic-lts-wily
# Update packages
sudo apt-get update
# Install depenedencids
sudo apt-get install -y curl wget python-pip python-dev libffi-dev gcc libssl-dev ntp
# Install Dockr
@harish-r
harish-r / Stack - Array Implementation.cpp
Last active August 29, 2015 14:06
Stack - Array implementation in C++
/* Stack - Array Implementation */
/* Language: C++ */
/* Created By: Harish R */
#include<iostream>
#define MAX 10
using namespace std;
class Stack