Wednesday 28 June 2023

code for renju

 # Create a new Excel Application object

$excel = New-Object -ComObject Excel.Application


# Add a new workbook

$workbook = $excel.Workbooks.Add()


# Get the first worksheet in the workbook

$worksheet = $workbook.Worksheets.Item(1)


# Set the column headers

$worksheet.Cells.Item(1, 1) = "COLUMN 1"

$worksheet.Cells.Item(1, 2) = "COLUMN 2"


# Read the input data from the file

$inputData = Get-Content -Path 'D:\input.txt'


# Regular expression pattern to separate the numbering and header

$pattern = '(\d+(\.\d+)*)\s*(.*)'



# Iterate through the input data and populate the table

for ($i = 0; $i -lt $inputData.Count; $i++) {

    $row = $inputData[$i].Trim()


    if ($row -match $pattern) {

        $numbering = $matches[1].Trim()

        $header = $matches[3].Trim()


      # Remove page numbers and ellipsis from the header

        $header = $header -replace '\s*\d+$', '' -replace '\.\.+', ''


        $rowIndex = $i + 2


        # Set the numbering and header in the respective columns

        $worksheet.Cells.Item($rowIndex, 1) = $numbering

        $worksheet.Cells.Item($rowIndex, 2) = $header

    }

}


# Save the workbook as an Excel file

$workbook.SaveAs('D:\output.xlsx')


# Close the workbook and quit Excel

$workbook.Close()

$excel.Quit()


# Clean up the COM objects

[System.Runtime.Interopservices.Marshal]::ReleaseComObject($worksheet) | Out-Null

[System.Runtime.Interopservices.Marshal]::ReleaseComObject($workbook) | Out-Null

[System.Runtime.Interopservices.Marshal]::ReleaseComObject($excel) | Out-Null

[System.GC]::Collect()

[System.GC]::WaitForPendingFinalizers()


Friday 20 November 2009

Brilliance by Piyush Sharma from Gulal




Sarfaroshi ki tamanna ab hamare dil me hai
[Dekhna hai zor kitna bazu-e-kaatil me hai
Waqt aane de bataadenge tujhe e aasmaan



Hum abhi se kya batayen kya hamare dil me hai]
Sarfaroshi ki tamanna ab hamare dil me hai
Oh re Bismil kaash aate aaj tum Hindustaan
Dekhte ki mulk saara kya tashan, mehfil mein hai



Aaj ka launda yeh kehta hum to bismil thak gaye
Apni aazaadi to bhaiya laundiya ke til mein hai.
Aaj ke jalson me Bismil ek gunga gaa raha.



Aur behron ka wo rela naachta mehfil mein hai
Haath ki khadi banaane ka zamaana lag gaya
Aaj to chaddi bhi silti englison ki mill mein hai
Dekhna hai zor kitna bazu-e-kaatil me hai



Waqt aane de bataadenge tujhe e aasmaan
Hum abhi se kya batayen kya hamare dil me hai
Sarfaroshi ki tamanna ab hamare dil me hai

Friday 27 March 2009

The most annoying song in recent times-- the killer BedBug

Khatiye Pe Mein Padi Thi, Aur Gehri Neend Badi Thi
Aage Kya Main Kahu Sakhi Re..
Ek Khatmal Tha Saiyana,
Mujhpe Tha Uska Nishana
Chunrai Mein Gus Gaya Dheere Dheere, Oooooo Ohhh
Kuch Nahi Samjha O Buddhu, Kuch Nahi Socha
Reng Ke Jaane Kaha Pahucha..
Ring Ring Ringa, Ring Ring Ringa, Ring Ring Ringa Ringa Ringa

Haaye Woh Sharmaye, Haaye Woh Lajaye, Haaye Haaye Kya Chupaye
Kitna Mein Taddpi Thi, Kitna Mein Royi Thi
Mein To Thi Acchi Bhali, Kyon Bhala Soi Thi
Nigade Ne Mujhko Chain Lene Na Diya
Rona Bhi Chaha To Mujhko Rone Na Diya, O Ho, Aise Us Harjai Ki Makkari
Mere Tan Badan Mein Thi Lagi Chingari, Per Aise Kya Thi Lachari
O O Oohoo, Are Haiya Haiya Hoo

Haule Se Gudgudata, Dil Mein Hulchul MachataMein Sharm Se Thi Pani Pani..,
Hahaha, Jo Usko Dhundthi MeinChupke Se Woh Chup Jata,
Hahaha, Aise Thi Woh Meri Kahani..
OooYun Samjlo Khatmal Ka Shikar Hui Thi Mein,
Uske Aage Haar Gai Thi Mein
(Ring Ring Ringa, Ring Ring Ringa, Ring Ring Ringa Ringa Ringa)

Fact:The song debuted on UK and US charts at number 10 along with Jai Ho never has a hindi song been so popular in these countries

Wish You Were Here--Nightwish


Wish you were here
Me oh my country man
wish you were here
I wish you were here
Don't you know the snow is getting colder?
And I miss you like hellAnd I'm feeling blue
I've got feelings for you
Do you still feel the same?
From the first time I laid my eyes on you
Felt the joy of living
I saw heaven in your eyes
In your eyes
I miss your laugh
I miss your smile
I miss everything about you
Every second is like a minute
Every minute's like a day
When you're far away
I've got feelings for you
From the first time I laid my eyes on you
wish you were here
me oh my country man
wish you were here
(wish you were here)
Fact:'Wish you were here' remains the only soft and romantic song from Nightwish, all the other songs from Nightwish are influenced by Gothic Rock.

Tuesday 24 March 2009

My Love for you--- Worst song ever heard (Topi wala and Takla(Sameer))



Tere Bina Jeena Hai Kya
(Oh Jaana Love You Miss You Har Lamha)

Chaahe Ho Nazdeekiyan Chaahe Rahe Dooriyan
(Hogi Kashish Yeh Na Kam Jaan-E-Jaan)

Bechainiyon Ka Safar Tere Ishq Ka Yeh Asar
(Rehna Hai Saari Umar Jaan-E-Jaan)

My Love For You Is Not Of A Night Stand
(Oh Jaana Love You Miss You Har Lamha)

Tu Mere Jazbaat Mein Tu Mere Ehsaas Mein
(Tu Mere Har Saans Mein Hai Rawaan)

Dhadkan Bhi Yeh Keh RahiRag Rag Mein Tu Beh Rahi
(Tujhse Hi Dil Ki Lagi Jaan-E-Jaan)

My Love For You Is Not Of A Night Stand
(Oh Jaana Love You Miss You Har Lamha)
Tere Bina Jeena Hai Kya
(Oh Jaana Love You Miss You Har Lamha)
Here is a Fun Fact about this song Since there were no lyrics for the song in google, I had to listen to this song 10 times on a strecth [:(]

Time --Pink Floyd

Ticking away the moments that make up a dull day

You fritter and waste the hours in an off hand way

Kicking around on a piece of ground in your home town

Waiting for someone or something to show you the way

Tired of lying in the sunshine staying home to watch the rain

You are young and life is long and there is time to kill today

And then one day you find ten years have got behind you

No one told you when to run, you missed the starting gun

And you run and you run to catch up with the sun, but its sinking

And racing around to come up behind you again

The sun is the same in the relative way, but youre older

Shorter of breath and one day closer to death

Every year is getting shorter, never seem to find the time

Plans that either come to naught or half a page of scribbled lines

Hanging on in quiet desperation is the english way

The time is gone, the song is over, thought Id something more to say

Home, home again

I like to be here when I can

And when I come home cold and tired

Its good to warm my bones beside the fire

Far away across the field

The tolling of the iron bell

Calls the faithful to their knees

To hear the softly spoken magic spells.