Skip to content

Instantly share code, notes, and snippets.

View shortthirdman's full-sized avatar
🎯
Focusing

Swetank Mohanty shortthirdman

🎯
Focusing
View GitHub Profile
@shortthirdman
shortthirdman / Jenkinsfile.template
Created August 18, 2025 18:45
Jenkinsfile Template
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'mvn clean package -DskipTests'
}
}
@shortthirdman
shortthirdman / CS_Air_Passengers.ipynb
Created August 8, 2025 17:11
Time Series Analysis and Forecasting - A Comparison of Stationary and Non-Stationary Time Series with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shortthirdman
shortthirdman / Volume_Based_Algorithmic_Trading.ipynb
Created August 8, 2025 17:06
Volume-Based Algorithmic Trading
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shortthirdman
shortthirdman / SpringBoot_Snippets.md
Last active July 12, 2025 13:24
Advanced Spring Boot Code Snippets
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import org.springframework.stereotype.Component;


@Aspect
@Component
@shortthirdman
shortthirdman / decision_trees_frm.py
Last active June 21, 2025 07:41
Decision Trees in Financial Risk Management
## --- Imports ---
import requests
import pandas as pd
import numpy as np
import yfinance as yf
from sklearn.tree import DecisionTreeClassifier, plot_tree
import matplotlib.pyplot as plt
import re
# --- Step 1: Download and save financial statements to Excel ---
@shortthirdman
shortthirdman / ChunkedUploadController.java
Created May 24, 2025 09:13
Uploading Large Files in Chunks with Spring Boot
@RestController
@RequestMapping("/api/upload")
public class ChunkedUploadController {
private final Path storagePath = Paths.get("uploads");
@PostMapping("/chunk")
public ResponseEntity<String> uploadChunk(
@RequestParam("file") MultipartFile chunk,
@RequestParam("chunkNumber") int chunkNumber,
@shortthirdman
shortthirdman / SVB_Inverted_Curve_and_Bond_Risk.ipynb
Last active April 24, 2025 12:14
SVB, Inverted Curve, and Bond Risk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shortthirdman
shortthirdman / Stock_Market_Forecasting.ipynb
Created April 24, 2025 12:11
Stock Market Forecasting with Differential Graph Transformer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import java.util.*;
import java.util.stream.Collectors;
/**
* TransactionType enum as an example.
* In your challenge environment, this might be pre-defined.
*/
enum TransactionType {
P2P,
P2M,
@shortthirdman
shortthirdman / async_retry.py
Created March 25, 2025 11:43
Async Retry Decorator
import functools
import time
import random
import asyncio
def async_retry(max_retries=3, start_delay=2, backoff_factor=2, exceptions=(Exception,)):
"""Retry decorator for async functions with exponential backoff."""
def decorator(func):
@functools.wraps(func)
async def wrapper(*args, **kwargs):