Skip to content

Instantly share code, notes, and snippets.

View tisu19021997's full-sized avatar

Pham Minh Quang tisu19021997

View GitHub Profile

Diễn biến Toàn bộ Chiến tranh Ukraine và Nga từ Năm 2024 đến Tháng 8 Năm 2025

Giai đoạn từ tháng 1 năm 2024 đến tháng 8 năm 2025 của cuộc chiến tranh Ukraine-Nga đã chứng kiến sự tiếp diễn của các cuộc giao tranh dữ dội, những thay đổi chiến lược quân sự, các nỗ lực ngoại giao không ngừng, những tác động kinh tế sâu rộng và một cuộc khủng hoảng nhân đạo kéo dài. Cả hai bên đều đã điều chỉnh chiến thuật và chiến lược để đối phó với tình hình chiến trường và bối cảnh quốc tế đang thay đổi.

1. Diễn biến Quân sự Chính

Giai đoạn này được đánh dấu bằng chiến lược tiêu hao dần và các cuộc tiến công cục bộ của Nga, trong khi Ukraine phản ứng bằng các cuộc tấn công xuyên biên giới và chiến tranh máy bay không người lái sáng tạo, bất chấp những thách thức đáng kể về đạn dược và nhân lực [The New York Times, RUSI].

Năm 2024:

  • Ngày 17 tháng 2 năm 2024: Lực lượng Nga đã chiếm được Avdiivka, một thành trì quan trọng của Ukraine ở vùng Donetsk, sau nhiều tháng giao tranh ác liệt. Đây được coi là một sự

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

let amount = 100;
let r, g, b, a;
let color = [255];
function randomColor() {
r = random(255); // r is a random number between 0 - 255
g = random(100, 200); // g is a random number betwen 100 - 200
b = random(100); // b is a random number between 0 - 100
a = random(200, 255); // a is a random number between 200 - 255
return [r, g, b, a]
...code to get video_metadata above...
# For queries with both image and text.
MULTI_QA_TEMPLATE_STR = (
f'You are responsible to answer the questions from a user about a video called "{video_metadata["title"]}.\n"'
"You have the following components at hands:\n"
"1. The first image: the image is from the user, COMPARE it with others image to answer the query.\n"
"2. Other images: they are cuts from the videos, use them to compare with the first image.\n"
"Other images information is below.\n"
"---------------------\n"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
import re
import requests
import html
from multiprocess.pool import Pool
from multiprocess import Manager
manager = Manager()
resultx = manager.dict()
{
"public_identifier": "eden-marco",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/eden-marco/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20230513%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20230513T080203Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=864f0b1147bf2957e077b949cb3d81b0fa5503317519b8444e2ec4960c744f1c",
"background_cover_image_url": null,
"first_name": "Eden",
"last_name": "Marco",
"full_name": "Eden Marco",
"follower_count": null,
"occupation": "Customer Engineer at Google",
"headline": "Customer Engineer @ Google Cloud | Best-selling Udemy Instructor",
import numpy as np
import plotly
import plotly.graph_objs as go
import plotly.express as px
import plotly.io as pio
import plotly.offline as pyo
pio.templates.default='plotly_white'
import requests
import torch
from itertools import product
url = 'https://raw.githubusercontent.com/karpathy/makemore/master/names.txt'
# Getting the data.
words = requests.get(url).text.split('\n')
# Build dictionaries.
chars = sorted(list(set(''.join(words))))
bi_chars = sorted(list(product(chars, repeat=2)))
@tisu19021997
tisu19021997 / stablediffusionwalk.py
Created September 19, 2022 20:25 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4