386 private links
How to remove credentials inadvertenly inserted in the git repo
Underestimated tag !
It is easy to build on top of it to have a nice dropdown element, etc...
Valid e-Mail adresses are hard to verify. Do not do it.
These email adresses are valid:
@1st.relay,@2nd.relay:user@final.domain
relay.domain!user@domain
user%final.domain@1st.relay
'*+-/=?^_`{|}~#$@netmeister.org
"🍺🕺🎉"@domain
jschauma@شبكةمايستر..شبكة
santa.cl@ws
jschauma@[IPv6:2001:470:30:84:e276:63ff:fe72:3900]
Des solutions pour résoudre différents problèmes en 1 ligne de code
Yet another guide on python decorators.
Well written 👍
Setting the property name into brackets give the ability to evaluate its value as an expression. Thus custom property names can be created:
let a = {
['foo' + 1]: i,
}
console.log(a.foo1) // print 1Naming a Slice Using slice Function, Prompting User for a Password at Runtime, Find Close Matches of a Word/String, Working with IP Addresses, Debugging Program Crashes in Shell, Defining Multiple Constructors in a Class, Caching Function Calls Using Decorator, Find the Most Frequently Occurring Items in a Iterable
Sanitizing String Input, Taking Slice of an Iterator, Skipping Begining of Iterable, Functions with only Keyword Arguments (kwargs), Creating Object That Supports with Statements, Saving Memory with slots, Limiting CPU and Memory Usage, Controlling What Can Be Imported and What Not, Comparison Operators the Easy Way
TL;DR It may works; but don't use literal in python !
Utiliser les annotations, accessible via self.__annotations__.
Par exemple pour typer ou vérifier les variables qui arrivent d'une DB sans passer par SQLAlchemy; les exporter en JSON en vérifiant que le format est bien compatible;
So true !
Compile python code to LLVM code, can be run on GPU ! ⭐️
Wow I definitely need to read this on my free time !
Avec le temps le fonctionnement interne de ces processeurs est de plus en plus éloigné du modèle de processeur déterministe qu’on présente souvent lorsqu’on apprend le C, alors que leur API externe est restée plus stable. D’une certaine manière, écrire en C correspond à écrire du code avec pour cible un ordinateur qui correspond à l’état de l’art de l’époque où le C a été inventé, et les processeurs modernes font un peu semblant de continuer à fonctionner de cette manière.
Ouaip
Rule 1 - DO NOT use return for control-flow
Rule 2 - DO NOT conflate multiple logical conditions in a single statement
Rule 3 - DO NOT leave unhandled cases
Rule 4 - DO NOT encode data in if statements