Xenia – A monospaced font built with a custom Python engine
https://github.com/Loretta1982/xenia
#HackerNews #Xenia #Font #Python #Engine #Monospaced #Typography #GitHub
Python Tip #18 (of 365):
Merge iterables using asterisks: [*first, *second]
To merge iterables, don't do this:
third = list(first) + list(second)
Do this:
third = [*first, *second]
Two reasons I recommend this:
1. It's faster (no need to make 3 new lists instead of 1)
2. "There's a special syntax for that" usually indicates that it's more idiomatic
Remember my recommendation AGAINST using [*old] to copy a list (tip 13)?
"*" isn't for copying so much as merging
Show HN: Xenia – A monospaced font built with a custom Python engine
https://github.com/Loretta1982/xenia
Chỉ 5 phút tạo mẫu SaaS nhờ Python + Streamlit + Gemini API. Mỗi khi có ý tưởng, mình viết script Python, dùng Streamlit làm giao diện, gọi Gemini API để thử nhanh. Bạn có cách nào tương tự? #SaaS #Python #Streamlit #GeminiAPI #khởi_nghiệp #tech #đánh_giá
https://www.reddit.com/r/SaaS/comments/1qgf0l0/i_prototype_my_saas_in_5_minutes_thanks_to_python/
#Python people, which type checker are you you using?
I just tried ty, and was really surprised at how much more output it generates than mypy. There's so much output, I think I prefer what mypy generates.

Henderson & Morris coined "lazy evaluation" in 1976. Almost 50 years later we're still figuring out how to do it without a garbage collector. #golang #rust #python #csharp #dotnet #fsharp https://speakez.tech/blog/seqing-simplicity/
Mới! Notebook Python minh họa RLVR kết hợp GRPO, được triển khai từ đầu trong dự án Reasoning‑from‑Scratch. Tài liệu chi tiết, ví dụ thực tế cho các nhà nghiên cứu RL. #AI #MachineLearning #RL #GRPO #Python #CôngNghệ #TríTuệNhânTạo
https://www.reddit.com/r/LocalLLaMA/comments/1qgcj8b/rlvr_with_grpo_from_scratch_code_notebook/
10000 steps of walker that turns 30° one way if the step is prime and 30° the other way. #genuary #genuary18 #genuary2026
Find the sketch-a-day archives and tip jar at: https://abav.lugaralgum.com/sketch-a-day
Code for this sketch at: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_01_18 #Processing #Python #py5 #CreativeCoding

S1 EP17 Lab 5 - Machine Learning in Python - Python Sets Cannot Change - But You Can Add #machinelearningbasics #softwaredeveloper #dataengineering #PythonForDataScience #jupyterlabs #learnpython #machinelearningtutorial #jupyternotebook #mlforbeginners #algorithims #learntocode #machinelearningmodels #machinelearning #codingforbeginners #datascienceforbeginners #python #pythoncoding #datascience #statistics #vscode
How to solve combined logical operators in one line code - S1 EP02 P8 #Python #LearnPython #PythonProgramming #VariablesInPython #PythonTutorial #PythonBasics #TechEducation #CodingBasics #CodeNewbie #S1EP01 #PythonSeries #LearnOnTikTok #TechTok #CodingTok #EducationTikTok #Programming101 #python #CodingForBeginners #ProgrammingSeries #CodeTutorial
If your #Python #Pandas dataframe has a datetime index, use a slice to retrieve rows in a certain time period:
taxi_df.loc['2025-11-01':'2025-11-03']
But if the rows are unsorted? You get a KeyError.
Solution:
taxi_df.sort_index().loc['2025-11-01':'2025-11-03']

If a text column #Python #Pandas data frame uses lots of memory and repeats, make it a category:
df['x'].memory_usage(deep=True)
# result: 8,093,417
df['x'] = df['x'].astype('category')
df['x'].memory_usage(deep=True)
# result: 154,853
A 99% savings!
