Skip to content

Instantly share code, notes, and snippets.

View Salil999's full-sized avatar

Shashank Saxena Salil999

View GitHub Profile
@Salil999
Salil999 / discovery_sharded.json
Created August 15, 2023 14:12
discovery_sharded
{
"ping": {
"goVersion": "go1.20.7",
"dataFormat": 1,
"agentVersion": "13.4.0.8392",
"key": "64da75d9f9dade265df5e4743f073b882da446bfd14b75a117253034",
"agentHostname": "atlas-mqwb69-shard-00-00.krnbe.mmscloudteam.com",
"agentShortHostname": "atlas-mqwb69-shard-00-00.krnbe.mmscloudteam.com",
"agentSessionKey": "4e6ea6622610ea7d1b38d693f5703413",
"srcVersion": "0000000000000000000000000000000000000000",
@Salil999
Salil999 / MyQueue.java
Created May 5, 2023 19:13
Synchronized Queue
package com.xgen.svc.mms.svc.ping.observers;
import java.util.concurrent.Semaphore;
public class MyQueue {
private Node front;
private Node rear;
private int numElements;
private final int maxSize;
@Salil999
Salil999 / sum_statement.js
Last active February 5, 2024 14:23
Capital One Online Statement Summation
const computeTotal = () => {
const rows = document.querySelectorAll('c1-ease-row')
let total = 0
for(let i = 0; i < rows.length; i++) {
const amountString = rows[i].lastElementChild.innerText
if (amountString.charAt(0) === '-') {
// Negative amount -> need to subtract
// -$18.10
const amount = amountString.substring(2).replace(',', '')