Skip to content

Instantly share code, notes, and snippets.

🎯
Curious Phase

Akhash Ramamurthy akhr

🎯
Curious Phase
  • Private
  • USA
View GitHub Profile
@akhr
akhr / TopDown.java
Created Apr 20, 2020
0/1 Knapsack Implementation using Dynamic Programming Top-Down Approach
View TopDown.java
/**
*
*/
package dp.knapsack_0_1;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
@akhr
akhr / BottomUp.java
Created Apr 20, 2020
0/1 Knapsack Implementation using Dynamic Programming Bottom-Up Approach
View BottomUp.java
/**
*
*/
package dp.knapsack_0_1;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* @author ramamurthy
View K8s Demo
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
View SortedArrayToTree.java
public class Arra2Tree {
public class Node {
int data;
Node left;
Node right;
public Node(int data) {
this.data = data;
}
public void setData(int data) {
View URL_Validator.js
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;
}
View getUrlProtocol.js
surl = 'sdf:/900';
url = surl.toLowerCase();
var arr = url.split("://");
var protocol = arr[0];
console.log('protocol - '+protocol);
if(protocol === 'https')
{
View designer.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-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View designer.html
<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 Aug 29, 2015
designer
View GoogleMap
<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">
You can’t perform that action at this time.