Skip to content

Instantly share code, notes, and snippets.

View osdevisnot's full-sized avatar

Abhishek Shende osdevisnot

View GitHub Profile
@osdevisnot
osdevisnot / solution.py
Created March 4, 2025 01:13
Cassidy Newsletter - Issue #394 - Discount Problem Solution
from datetime import datetime
FORMAT = "%Y-%m-%d"
def calculate_price(closing_date, visit_date, original_price):
closing_date = datetime.strptime(closing_date, FORMAT)
visit_date = datetime.strptime(visit_date, FORMAT)
if visit_date > closing_date: # no discount if visit is after closing
return original_price
@osdevisnot
osdevisnot / README.md
Created July 16, 2021 19:09
next-component-playground

Create a quick Component Playground in your next project.

@osdevisnot
osdevisnot / loader.js
Created May 13, 2021 05:29
rollup-globals-test
// process <<< Capitalize the P and error is GONE
export const rabbit = () => {
return import(`./empty.js`);
};
@osdevisnot
osdevisnot / .gitignore
Created February 5, 2021 22:38
esbuild-fastify-starter
node_modules
dist
yarn.lock