Skip to content

Instantly share code, notes, and snippets.

View plant99's full-sized avatar
🦆
everything is absurd, but plants

Shivashis Padhi plant99

🦆
everything is absurd, but plants
View GitHub Profile

Problem Statement

Discount model

  • Type: [cashback (20 rs for min order of 200), offers (upto 30% off on order of 200rs), vouchers(flat x off until 30 days)]
  • Create a Discount class
    • Figure out how to represent in classes
  • 2 queries
    • List of all discounts
    • List best discounts given on Rs Y
@plant99
plant99 / userguide.md
Last active April 24, 2023 16:09
Schedule Share -- User Guide

ALERT: ScheduleShare uses your browser's LocalStorage to store events, and thus they're not guaranteed to persist. Please don't trust its storage layer (yet).

Introduction

Has someone ever asked you Hi Jon Doe, could you please share your availability for the upcoming week?, or Hi Jon, when would you be free for a 30 minutes call on the Tuesday, next week? ?

Have you tried to manually write durations in these scenarios?

Or have you tried to convert your local times to other timezones in your head?

@plant99
plant99 / diff.txt
Created January 17, 2023 09:14
diff for MM-47137
diff --git a/app/security_update_check.go b/app/security_update_check.go
index b20d9268e..dbd76d6c9 100644
--- a/app/security_update_check.go
+++ b/app/security_update_check.go
@@ -5,6 +5,7 @@ package app
import (
"encoding/json"
+ "fmt"
"io"
@plant99
plant99 / help.md
Last active December 14, 2022 16:27
@plant99
plant99 / load-test-guide.md
Created June 20, 2022 13:03
load-test-additional-docs

Load test notes

Prerequisites for load-testing a new feature

  • Build and test a feature in a mattermost-server branch.
  • Scan through markdown docs in mattermost-load-test-ng. Make sure you get an idea of what a coordinator, agent, controller, bounded and unbounded load-test is, and why do we need metrics collection(a deployment of prometheus) in this setup.

Steps to load test the feature

Brief summary of tasks

@plant99
plant99 / test.py
Created April 26, 2021 05:33
question related to sat-search
cloud_cover = 10
search = Search(
url="https://earth-search.aws.element84.com/v0",
bbox=bbox,
query={
"eo:cloud_cover": {"lt": cloud_cover}
},
sort=[{"field": "eo:cloud_cover", "direction": "asc"}],
)
@plant99
plant99 / vendoring.md
Created March 21, 2021 08:27
Vendoring in felicette

Introduction

Vendoring is often considered an anti-pattern, for many reasons including the following

  • extra source code space
  • hard to track upstream changes
  • loss of version control information.

But sometimes one has to counter an anti-pattern with a relatively safer anti-pattern.

The problem

@plant99
plant99 / feeds.opml
Last active October 12, 2022 10:54
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<body>
<outline text="All">
<outline title="Airbnb Engineering &amp;amp; Data Science - Medium" text="Airbnb Engineering &amp;amp; Data Science - Medium" xmlUrl="https://medium.com/feed/airbnb-engineering" htmlUrl="https://medium.com/airbnb-engineering?source=rss----53c7c27702d5---4"></outline>
<outline title="ArtCurious Podcast" text="ArtCurious Podcast" xmlUrl="https://feeds.megaphone.fm/artcuriouspodcast" htmlUrl="http://www.artcuriouspodcast.com/artcuriouspodcast/"></outline>
<outline title="Blogs on Drew DeVault&#39;s blog" text="Blogs on Drew DeVault&#39;s blog" xmlUrl="https://drewdevault.com/blog/index.xml" htmlUrl="https://drewdevault.com"></outline>
<outline title="code.flickr.com" text="code.flickr.com" xmlUrl="https://code.flickr.net/feed/" htmlUrl="https://code.flickr.net"></outline>
<outline title="Coding Horror" text="Coding Horror"
x = 4
def print_dummy(y):
print(y)