This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
var url = window.location.href; | |
var match = url.match(/\/status\/(\d+)/); | |
if (match && match[1]) { | |
var newUrl = "https://en.rattibha.com/thread/" + match[1]; | |
window.location.href = newUrl; | |
} else { | |
alert("No matching thread ID found in the URL."); | |
} | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import pandas as pd | |
# Load JSON data, specify the file name with JSON content | |
with open(r'C:\OFF\raw.json') as f: | |
data = json.load(f) | |
# Convert to DataFrame | |
df = pd.json_normalize(data['products']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Old Name | New Name | Wikipedia | |
---|---|---|---|
Allahabad or Ilahabad | Prayagraj | https://en.wikipedia.org/wiki/Prayagraj | |
Bangalore | Bengaluru | https://en.wikipedia.org/wiki/Bangalore | |
Bombay | Mumbai | https://en.wikipedia.org/wiki/Mumbai | |
Calcutta | Kolkota | https://en.wikipedia.org/wiki/Kolkata | |
Cape Comorin | Kanyakumari or Kanniyakumari | https://en.wikipedia.org/wiki/Kanyakumari | |
Cawnpore | Kanpur | https://en.wikipedia.org/wiki/Kanpur | |
Chicacole | Srikakulam | https://en.wikipedia.org/wiki/Srikakulam | |
Cochin | Kochi | https://en.wikipedia.org/wiki/Kozhikode | |
Conjeveram | Kanchipuram | https://en.wikipedia.org/wiki/Kanchipuram |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
AI21 API Example: Get an answer to a question | |
""" | |
from ai21 import AI21Client | |
from ai21.models.chat import ChatMessage | |
import os | |
# Import necessary modules to work with the AI21 API | |
# AI21Client: Used to interact with the AI21 service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Select all table rows | |
const rows = document.querySelectorAll('table tr'); | |
// Iterate through each row | |
rows.forEach(row => { | |
// Remove the last cell twice | |
row.removeChild(row.lastElementChild); | |
row.removeChild(row.lastElementChild); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foods | Vitamin B1 (Thiamine) (µg) | Vitamin B2 (Riboflavin) (µg) | Vitamin B3 (Niacin) (µg) | Vitamin B6 (Pyridoxine) (µg) | Vitamin B9, Total folates (µg) | Vitamin C (mg) | Vitamin A (Retinol) (µg) | Vitamin D (D2) (µg) | |
---|---|---|---|---|---|---|---|---|---|
Cereals | 238.46 | 84.6 | 2138.5 | 162.31 | 15.86 | 0 | 2.01 | 6.88 | |
Millets | 355.56 | 155.6 | 2177.8 | 113.33 | 24.17 | 0 | 1.02 | 6.1 | |
Pulses | 400 | 158.8 | 2123.5 | 215.53 | 157.06 | 0 | 8.32 | 8.69 | |
GLVS | 60 | 127.7 | 624.6 | 97.49 | 31.6 | 45.6 | 397.9 | 3.4 | |
Roots & tubers | 31.58 | 10.5 | 405.3 | 97.47 | 21.48 | 12.1 | 39.85 | 0.55 | |
Vegetables | 41.3 | 43.5 | 365.2 | 97.48 | 28.53 | 23.6 | 18.4 | 2.38 | |
Nuts | 390 | 140 | 3210 | 311.4 | 47.58 | 0.4 | 1.26 | 9.06 | |
Fruits | 34.78 | 21.7 | 369.6 | 65.04 | 11.41 | 36.7 | 35.48 | 3.62 | |
Meat & poultry | 81.82 | 109.1 | 2772.7 | 220 | 5.59 | 0 | 1.93 | 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Constituency | MLA | Party | |
---|---|---|---|
Achampet | Dr CHIKKUDU VAMSHI KRISHNA | Indian National Congress | |
Adilabad | PAYAL SHANKER | Bharatiya Janata Party | |
Alair | ILAIAH BEERLA | Indian National Congress | |
Alampur | VIJAYUDU | Bharat Rashtra Samithi | |
Amberpet | KALERU VENKATESH | Bharat Rashtra Samithi | |
Andole | C. DAMODAR RAJANARSIMHA | Indian National Congress | |
Armur | Paidi Rakesh Reddy | Bharatiya Janata Party | |
Asifabad | KOVA LAXMI | Bharat Rashtra Samithi | |
Aswaraopeta | ADINARAYANA. JARE | Indian National Congress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find all div elements with class "gallery-item" | |
const products = document.querySelectorAll('div.gallery-item'); | |
// Array to store product list items | |
const productListItems = []; | |
// Iterate over each product | |
products.forEach(product => { | |
// Extract the hyperlink | |
const hyperlink = product.querySelector('a.block-wrapper-link').getAttribute('href'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thing | Monthly Cost | Yearly Cost | |
---|---|---|---|
Rent/EMI for home | 35000 | 420000 | |
Child School+Extracurriculars | 400000 | ||
Car EMI+Maintainance+Insurance | 200000 | ||
1 Asia/India Trip | 150000 | ||
Food | 10000 | 120000 | |
Apparels/ Footwear/ Accessories | 10000 | 120000 | |
Healthcare | 8000 | 96000 | |
Car + Bike Petrol | 5350 | 64200 | |
Electronics(Laptop, Mobile, AC, TV, Washing Machine) | 50000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
var t, ts, h, m, s, u, c, tmr, f = document.createElement("div"); | |
f.id = "revClock"; | |
f.style.cssText = "position: fixed; top: 10px; right: 10px; background-color: rgba(0, 0, 0, 0.5); padding: 10px; z-index: 9999; text-align: center; font-size: 20px; color: white;"; | |
document.body.appendChild(f); | |
t = prompt("Enter number of minutes:"); | |
if (t === null || isNaN(t) || t < 0) { | |
alert("Invalid input. Please enter a positive number for minutes."); | |
return; |