Skip to content

Instantly share code, notes, and snippets.

View shashankrnr32's full-sized avatar
🏠
Working from home

Shashank Sharma shashankrnr32

🏠
Working from home
View GitHub Profile
/* Easy to use simple code snippet that can be used as a starting point for Competitve Programming */
/* Do not import new packages to the program unless allowed by the interviewer*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/* Here is where the execution starts */
@shashankrnr32
shashankrnr32 / model.py
Last active September 29, 2023 20:04
Pydantic Model with Builder pattern
"""
Github Issue Thread: https://github.com/samuelcolvin/pydantic/issues/2152#issuecomment-786713976
License : MIT
Copyright 2021 Shashank Sharma
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,