Skip to content

Instantly share code, notes, and snippets.

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

danishi danishi

🏠
Working from home
View GitHub Profile
@danishi
danishi / veo2.ipynb
Created April 7, 2025 02:35
Veo 2 on Vertex AI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / Get_answers_from_Gemini_with_context_caching_across_your_Git_repositories.ipynb
Created July 23, 2024 01:53
Get answers from Gemini with context caching across your Git repositories.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / Cloud_Vision_API_Detecting.ipynb
Last active July 4, 2024 07:45
Image processing by Pillow combined with Cloud Vision AI object detection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / Cloud_Vision_API_Detecting_Faces.ipynb
Last active July 4, 2024 09:12
Image processing by Pillow combined with Cloud Vision AI face detection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / gemini_pro_vision_with_langchain.ipynb
Last active January 25, 2024 13:57
Gemini Pro Vision with LangChain on Google Colaboratory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / call_openai_with_langchain_on_colab.ipynb
Created January 24, 2024 12:09
Call Open AI model with LangChain on Google Colaboratory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danishi
danishi / basic-auth-with-cloudFront-KeyValueStore.js
Last active November 22, 2023 11:46
Basic authentication with CloudFront KeyValueStore
import cf from 'cloudfront';
const kvsId = '<KEY_VALUE_STORE_ID>';
// This fails if the key value store is not associated with the function
const kvsHandle = cf.kvs(kvsId)
async function handler(event) {
const request = event.request;
const headers = request.headers;
@danishi
danishi / pascals_triangle.py
Last active September 9, 2023 11:18
Pascal's triangle
import copy
init_array = [1, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(1, 10):
copy_array = copy.copy(init_array)
if i != 1:
copy_array.insert(0, 1)
@danishi
danishi / year_progress.py
Created June 18, 2023 01:25
Year Progress
import datetime
today = datetime.date.today()
#today = datetime.date(2023, 12, 31) # for testing
year_start = datetime.date(today.year, 1, 1)
year_end = datetime.date(today.year + 1, 1, 1)
year_progress = (today - year_start) / (year_end - year_start)
persent = str(round(year_progress * 100)) + '%'
3892-9183
943-94
sasasas
32-93-
32-932-93jfdipfjdipf
Есть опасность нарваться на подобные символы: ด็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็