Skip to content

Instantly share code, notes, and snippets.

View codewithpom's full-sized avatar
🎯
Building txtutils

Padmashree Jha codewithpom

🎯
Building txtutils
View GitHub Profile
const student = {
name: "Insha",
age: 20
}
let key = "name"
console.log(student[key]) // prints out Insha
@codewithpom
codewithpom / bootstrap-login-page.markdown
Created December 11, 2022 09:49
Bootstrap Login Page
import os
import json
import base64
import sqlite3
import shutil
from datetime import timezone, datetime, timedelta
#3rd party modules
import win32crypt
from Crypto.Cipher import AES
@codewithpom
codewithpom / main.py
Created December 10, 2023 18:46
OpenAI GPT writter
import json
import streamlit as st
from openai import OpenAI
# client = OpenAI(
# # This is the default and can be omitted
# api_key=os.environ["OPENAI_API_KEY"],
# )
import os
import requests
from bs4 import BeautifulSoup
import openai
# OpenAI API key (replace with your actual API key)
openai.api_key = 'API_KEY_HERE'
# URL of the NDTV Health page
url = 'https://www.ndtv.com/health'