Skip to content

Instantly share code, notes, and snippets.

View akhr's full-sized avatar
🎯
Curious Phase

Akhash Ramamurthy akhr

🎯
Curious Phase
View GitHub Profile
// ==UserScript==
// @name eBay Search - added Top verified seller (Star)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include *.ebay.*
// @require https://code.jquery.com/jquery-3.5.1.min.js
// ==/UserScript==
@akhr
akhr / TopDown.java
Created April 20, 2020 19:34
0/1 Knapsack Implementation using Dynamic Programming Top-Down Approach
/**
*
*/
package dp.knapsack_0_1;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
@akhr
akhr / BottomUp.java
Created April 20, 2020 19:32
0/1 Knapsack Implementation using Dynamic Programming Bottom-Up Approach
/**
*
*/
package dp.knapsack_0_1;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* @author ramamurthy
@akhr
akhr / K8s Demo
Last active August 4, 2019 01:17
11814 minikube version
11815 minikube start &
11816 cat .minikube
11817 cat .minikube/config/config.json
11821 minikube status
11824 kubectl version -o yaml
11825 kubectl config current-context
11826 kubectl config get-contexts
11827 kubectl config use-context minikube
11830 kubectl get nodes -o yaml
public class Arra2Tree {
public class Node {
int data;
Node left;
Node right;
public Node(int data) {
this.data = data;
}
public void setData(int data) {
function serverUrlValidator(input){
var url = input.toLowerCase();
var arr = url.split('://');
var protocol = arr[0];
if(protocol === 'https' || protocol === 'http'){
//Do nothing
}else if(protocol === url){
url = 'https://' + url;
}
surl = 'sdf:/900';
url = surl.toLowerCase();
var arr = url.split("://");
var protocol = arr[0];
console.log('protocol - '+protocol);
if(protocol === 'https')
{
@akhr
akhr / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@akhr
akhr / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
@akhr
akhr / GoogleMap
Last active August 29, 2015 14:20
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">