
Python / Django Developer https://xitter.gq/t.co/npnIXAsyLE
Romania
Joined May 2009
- Tweets100
- Following1K
- Followers128
- Likes195
Alina Bazavan retweeted
Helpful resources:
- repo: github.com/googleapis/python…
- docs: ai.google.dev/gemini-api/doc…
- migration guide from the old SKD: ai.google.dev/gemini-api/doc…
Alina Bazavan retweeted
The Google Gen AI Python SDK v1.0.0 is here!
It brings major improvements and stability, including:
- Gemini API and Vertex support
- pydantic types
- function calling
- JSON response schema
- streaming
- async
- Imagen 3 support
- finetuning
happy building!
Alina Bazavan retweeted
Every decision has an opportunity cost.
In the past I would say yes to way too many things.
Then I learned to say no to things so I could focus on the few things that really matter (80/20).
A day only has 24 hours and sleep matters.
Protect your time, learn to say no!
Alina Bazavan retweeted
Did you know there's a way to use #Python dictionaries to emulate an ordered set?
Here's how:
Alina Bazavan retweeted
This is major. TypeScript in Node!
Play with it in CodeSandbox today.
Release is scheduled for July 30th.
Cheers to my coworker @satanacchio for getting this one in. The other month I was talking about things that keep me from loving node and he was like *hold my beer*
WE DID IT 🤩🤩
The first step towards TypeScript support in Node.js landed. It's only the first iteration, and it's not supporting many of the features we want.
This is just the beginning 🤠
github.com/nodejs/node/pull/…
Alina Bazavan retweeted
Pydantic is hiring a Platform Engineer! 🎉🛠️
pydantic.dev/jobs/platform
Join the @pydantic team and help us build robust, scalable platforms that empower our users!
Retweets appreciated! 🚀
Alina Bazavan retweeted
Replying to @bbelderbos @nateskulic
Seems trivial:
Old way time: 0.574936 seconds
New way time: 0.573479 seconds
Alina Bazavan retweeted
🅰️📢 Angular 18.1 has just been released! It introduces the new @let syntax for declaring local variables in the templates:
#angular #javascript #typescript #AngularAddicts @angular
Alina Bazavan retweeted
Do you want a quick way to get a transcript from a YouTube video?
The youtube-transcript-api #Python package is noice! 🎉 🙏
2 loc:
```
from youtube_transcript_api import YouTubeTranscriptApi
transcript = YouTubeTranscriptApi.get_transcript(video_id)
```
Or use its cli 😎 📈
Alina Bazavan retweeted
Python Question / Quiz;
What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇
#python #programming #developer #morioh #programmer #coding #coder #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #machinelearning
Alina Bazavan retweeted
Python tip:
Because tuples are immutable, there's no need to copy them (they can't be copied).
tuple(my_tuple) returns itself.
On the other hand, lists are mutable, so copying them makes sense.
list(my_list) returns a new list.
Alina Bazavan retweeted
Level up your skills and get certified with GitHub: Join us for the next 2 Learn Live sessions and get your certification voucher code during the sessions! Available until June 27, 2024.
🗓️June 19 & June 26
8:00 am PT / 11:00 am ET
17:00 CEST / 20:30 IST
aka.ms/CertifiedwithGitHub
Alina Bazavan retweeted
Deploy a Kubernetes cluster in AWS EKS using Terraform buff.ly/4boJtOR #kubernetes
Alina Bazavan retweeted
Terraform for GCP How to create Kubernetes Cluster buff.ly/44Dfsbs #kubernetes
Alina Bazavan retweeted
Alina Bazavan retweeted
DevOps Pipeline: From Code to Kubernetes with GitHub, Jenkins, Maven, SonarQube, and ArgoCD buff.ly/3Uydcxx #kubernetes
Alina Bazavan retweeted
Python 3.13 beta 1 just landed.
My favorite new feature is the new #Python REPL.
Honestly, this may be my favorite feature since f-strings.
Alina Bazavan retweeted
In #Python, using mutable objects (e.g. lists / dicts) as default arguments in functions can lead to unexpected behavior.
This happens because the default argument is evaluated only once when the function is defined, not each time it's called.
Better solution: use `None`:
![def sum_numbers(number, all_numbers=[]): all_numbers.append(number) return sum(all_numbers) print(sum_numbers(1)) # Expected 1, returns 1 print(sum_numbers(2)) # Expected 2, returns 3 (1 + 2) 😱 # solution - use None def sum_numbers(number, all_numbers=None): if all_numbers is None: all_numbers = [] all_numbers.append(number) return sum(all_numbers) print(sum_numbers(1)) # Returns 1 print(sum_numbers(2)) # Returns 2 🎉](https://pbs.twimg.com/media/GL1NDD3a0AAEemL.jpg?name=small&format=webp)
ALT def sum_numbers(number, all_numbers=[]): all_numbers.append(number) return sum(all_numbers) print(sum_numbers(1)) # Expected 1, returns 1 print(sum_numbers(2)) # Expected 2, returns 3 (1 + 2) 😱 # solution - use None def sum_numbers(number, all_numbers=None): if all_numbers is None: all_numbers = [] all_numbers.append(number) return sum(all_numbers) print(sum_numbers(1)) # Returns 1 print(sum_numbers(2)) # Returns 2 🎉
























