Skip to content

Instantly share code, notes, and snippets.

View satish860's full-sized avatar
🎯
Focusing

satish satish860

🎯
Focusing
View GitHub Profile

Company Overview

What is the history and background of Cosmix Wellness India Pvt Ltd?

Cosmix Wellness India Pvt Ltd is a brand that focuses on holistic wellness through natural, herbal solutions. Founded by Vibha Harish and Soorya Jagadish, the company was born out of Vibha's personal journey with PCOS and her search for sustainable and natural solutions. Cosmix follows a D2C model, selling their products primarily through their website, and has built a strong community of over 60,000 customers.

Their product range includes mixes that address issues like gut health, sexual health, and PCOS, and they have expanded to cater to problems that people often find difficult to discuss. Cosmix takes a holistic approach to wellness, recognizing the significance of long-term solutions over quick fixes. This ethos is reflected in their dedication to providing high-quality, natural products made with carefully sourced ingredients. Cosmix's association with Shopify dates back to Vibha's early days of thinking about

import json
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import letter
# Load the OCR results from the JSON file
with open('results.json') as f:
ocr_results = json.load(f)
# Create a new PDF document
pdf_filename = 'output.pdf'
@satish860
satish860 / basic.ipynb
Created March 19, 2024 17:17
Basic File
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pdf2image import convert_from_path
from paddleocr import PaddleOCR
from reportlab.pdfgen import canvas
from PyPDF2 import PdfReader, PdfWriter
import io
import numpy as np
import cv2
from tqdm import tqdm
def process_page(page_num, pil_image, input_pdf_path):
from llmsherpa.readers import LayoutPDFReader
llmsherpa_api_url = "https://readers.llmsherpa.com/api/document/developer/parseDocument?renderFormat=all"
pdf_url = "1.pdf" # Replace with your actual PDF file path
def read_pdf(pdf_url):
try:
pdf_reader = LayoutPDFReader(llmsherpa_api_url)
return pdf_reader.read_pdf(pdf_url)
except Exception as e:
@satish860
satish860 / AcornFile
Last active March 17, 2023 06:33
Sample Acorn file for Blog Post
containers: {
web:{
image:"widgetario/web:21.03"
ports: publish : "80/http",
}
"products-api":{
image:"widgetario/products-api:21.03"
ports: "80",
@satish860
satish860 / Moviedata.json
Created February 5, 2023 15:38
A Json Lines for Movie data
{"code": 1, "title": "The Shawshank Redemption", "title_suggest": ["The", "Shawshank", "Redemption"], "genre": ["Drama"], "director": "Frank Darabont", "actors": ["Tim Robbins", "Morgan Freeman", "Bob Gunton", "William Sadler"], "description": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.", "year": 1994, "runtime": "142 min", "rating": 9.3, "votes": 2343110, "revenue": "28,341,469", "metascore": 80, "certificate": "A", "avatar": "https://m.media-amazon.com/images/M/MV5BMDFkYTc0MGEtZmNhMC00ZDIzLWFmNTEtODM1ZmRlYWMwMWFmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_UX67_CR0,0,67,98_AL_.jpg"}
{"code": 2, "title": "The Godfather", "title_suggest": ["The", "Godfather"], "genre": ["Crime", "Drama"], "director": "Francis Ford Coppola", "actors": ["Marlon Brando", "Al Pacino", "James Caan", "Diane Keaton"], "description": "An organized crime dynasty's aging patriarch transfers control of his clandestine empire to his reluctant son.", "year": 1972, "runtime"
@satish860
satish860 / Mapping Curl
Last active February 5, 2023 15:39
Mapping Curl FIle
curl --request POST \
--url http://localhost:8108/collections \
--header 'Content-Type: application/json' \
--header 'X-TYPESENSE-API-KEY: Hu52dwsas2AdxdE' \
--data '{
"name":"movies",
"fields": [
{"name":"code","type":"int32","index":true},
{"name":"title","type":"string","index":true},
{"name":"title_suggest","type":"string[]","index":true},
builder.Services.AddIdentityServer(options =>
{
// https://docs.duendesoftware.com/identityserver/v6/fundamentals/resources/api_scopes#authorization-based-on-scopes
options.EmitStaticAudienceClaim = true;
})
.AddInMemoryIdentityResources(Config.IdentityResources)
.AddInMemoryApiScopes(Config.ApiScopes)
.AddInMemoryClients(Config.Clients)
.AddTestUsers(TestUsers.Users); // Just add the user here