GitHub Insights
github.com205 pointsby blackrobot56 comments
class UserManager(models.Manager):
def create_account(self, sanitized_username: str, ...):
# the rest of the code in this method is the same as the example.
...
return user_model, auth_token
class User(models.Model):
...
objects = UserManager()
>>> User.objects.create_account(sanitized_username="blackrobot", ...)
(<User: blackrobot>, 'fake-auth-token:12345')
The benefit here is that other parts of your code only need to import the User model to access the manager methods. It also allows for the User.objects.create_account(...) method to be used by related models, without risking a circular import, by using the fk model's Model._meta.get_field(...) method. COPY requirements.txt ./
RUN pip install -r requirements.txt
If you're building the image on a CI server, docker can't cache that step because the files won't match the cache due to timestamps/permissions/etc... The same is true for other developer's machines. Mr. Gates started the relationship after Mr. Epstein was convicted of sex crimes.
from the NYT article: https://www.nytimes.com/2019/10/12/business/jeffrey-epstein-... ...an autonomous system *(AS)* is a collection of
connected Internet Protocol *(IP)* routing prefixes
under the control of one or more network operators on
behalf of a single administrative entity or domain that
presents a common, clearly defined routing policy to the
Internet. javascript:var i,s,ss=['http://dl.dropbox.com/u/1578229/jrumble.1.1.min.js,http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);bookmarklet
https://www.howgood.com/careers?hn#openings
We build carbon accounting software, to track environmental impact, and make food companies more sustainable.
The role is for a frontend engineering manager (aka tech lead in some places). Your work will be 90% coding and 10% management.
Tech Stack:
You can read more about the role and apply here: https://www.howgood.com/careers?hn#openings