Skip to content

Instantly share code, notes, and snippets.

View ayush3298's full-sized avatar
🏠
Working from home

Ayush ayush3298

🏠
Working from home
View GitHub Profile
@ayush3298
ayush3298 / gdrive.py
Created March 9, 2025 18:28
GDRIVE MCP.py
#!/usr/bin/env python3
"""
Google Drive MCP Server
This server provides Model Context Protocol (MCP) integration with Google Drive,
allowing clients to:
- List and search files in Google Drive
- Read file contents
- List, read, and write Google Sheet data
"""
@ayush3298
ayush3298 / index.pug
Created November 23, 2019 08:25
Material Login Form
// Mixins
mixin input(type, label)
.input-container
input(type='#{type}' id='#{label}' required)
label(for='#{label}')=label
.bar
mixin button(text)
.button-container
button
span=text
dictionary = { "some_key": "some_value" }
for key, value in dictionary.items():
print("%s --> %s" %(key, value))
dictionary = { "some_key": "some_value" }
for key in dictionary:
print("%s --> %s" %(key, dictionary[key]))
books = [
"book1",
"book2",
"book3",
"book4",
"book5"
]
for book in books:
print(book)
dict_person = {
"name": "Leandro",
"nickname": "Len",
"nationality": "American",
}
dict_person['age'] = 24
print("My name is %s" %(dict_person["name"]))
print("But you can call me %s" %(dict_person["nickname"]))
print("And by the way I'm %i and %s" %(dict_person["age"], dictionary_tk["nationality"]))
dictionary_tk = {
"name": "Leandro",
"nickname": "Len",
"nationality": "Americal"
}
persons = []
persons.append("Person A")
persons.append("Person B")
print(persons[0]) # Person A
print(persons[1]) # Person B
numbers = [5, 7, 1, 3, 4]
print(numbers[0]) # 5
print(numbers[1]) # 7
print(numbers[4]) # 4
number = [1,2,3,4,5,6,7,8,9,10]
for num in number:
print(num)