Skip to content

Instantly share code, notes, and snippets.

View spattanaik75's full-sized avatar
:octocat:
Learning...

Soumya Ranjan Pattanaik spattanaik75

:octocat:
Learning...
View GitHub Profile
@spattanaik75
spattanaik75 / gist:27187f02a0811aa19ab7ea1e14a3e694
Created September 27, 2023 11:33
How to use volumemounts with configmaps
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: app
name: app
namespace: portals
spec:
progressDeadlineSeconds: 600
@spattanaik75
spattanaik75 / TableRelation.java
Created November 16, 2020 09:15
Find shortest path from one table to another table
import java.util.*;
import java.util.stream.Collectors;
public class TableRelation {
public static void main(String[] args) {
ArrayList<Table> tablesList = new ArrayList<Table>();
// tableColumnDetails
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Nightwatch HTML Report - Default Theme</title>
<style type="text/css">body{
margin: 10px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 0.8em;
}
// we set up the data fetch and hand the data
// to our main function
const fetch = require('node-fetch');
const getRedditJSONUrl = url => url.replace(/\/?$/, '.json');
const fetchData = url => fetch(url).then(response => response.json());
const extractPosts = redditPage => redditPage.data.children;