Aller au contenu
Blog
Tweets
CV
python
django
javascript
css
hiphop
anime
japon
gaming
Stats
Tweets
&
Toots
.
“
github
” 11 à 20
sur 245
Suivant ou précédent avec ←/→
Page suivante ou précédente avec ⇧←/⇧→
In #django `SQLCompiler.get_group_by()`:
> The logic of what exactly the GROUP BY clause contains is hard to describe in other words than "if it passes the test suite, then it is correct".
https://github.com/django/django/blob/0a560eab550696dbc163d57258ef6f3cdb9511a3/django/db/models/sql/compiler.py#L98-L100
GROUP BY clauses are one of the things that is easier to write in plain SQL (IMO).
10/03/2024 à 15:18
Permalien
Creating a sticky table header with #CSS should be as simple as:
`thead { position: sticky; top: 0; }`
But things go wrong as soon as any ancestor has a non-default value for overflow.
https://stackoverflow.com/a/44929597
https://github.com/w3c/csswg-drafts/issues/865
And I'm not even talking about border styles not working when sticky positioned…
(╯°□°)╯︵ ┻━┻
02/03/2024 à 19:11
Permalien
Having switched back and forth between management and engineering, I find it surprising how my behaviour is influenced by my position.
I remember doing that a lot as a manager:
> A large portion of my job is debugging social tensions and psychological insecurities of people.
I guess we view things through different lenses, depending on our position…
https://thoughtspile.github.io/2024/02/16/eng-to-em/
https://news.ycombinator.com/item?id=39406804
17/02/2024 à 11:12
Permalien
TIL "Scroll To Text Fragment"
Just append `#:~:text=<text>` to the URL
https://mgearon.com/html/text-fragments/
https://stackoverflow.com/a/62162093
https://wicg.github.io/scroll-to-text-fragment/
https://caniuse.com/url-scroll-to-text-fragment
16/02/2024 à 20:32
Permalien
If anybody knows a cross browsers trick for the next "focusable" DOM element to be INSIDE the current viewport AFTER a `scrollIntoView()`, I'm all ears.
I may have to wait for a proper callback to be implemented
https://github.com/w3c/csswg-drafts/issues/3744
06/01/2024 à 20:09
Permalien
Just replaced black + flake8 + isort + pylint by ruff for linting and formating
marcarea.com
They were not lying, it's blazing fast!
https://github.com/astral-sh/ruff
01/01/2024 à 19:27
Permalien
GitHub has become so slow… Almost painful to use… Sometimes it takes seconds to display a page
28/12/2023 à 18:46
Permalien
REST is d34d, just saying… :D
I've seen so many different opinions…
"How to (and how not to) design REST APIs"
https://news.ycombinator.com/item?id=38103310
https://github.com/stickfigure/blog/wiki/How-to-%28and-how-not-to%29-design-REST-APIs
02/11/2023 à 23:26
Permalien
git-blame-someone-else
https://github.com/jayphelps/git-blame-someone-else
Très important avant de changer de mission :D
25/06/2023 à 22:23
Permalien
Polars: Blazingly fast DataFrames in Rust, Python & Node.js
https://github.com/pola-rs/polars
07/04/2023 à 14:39
Permalien
Après
Avant
A
Joint