comand in shell:
pip install git+https://github.com/username/repository.git@branchWhen AlloyUI arrived on the scene, it added a new dimension to YUI contributorship(https://alloyui.com/examples/io/real-worl)
| from django.contrib.auth.models import User | |
| admin.site.unregister(User) | |
| from app_name.models import User | |
| admin.site.register(User) |
| from .utils import ChoiceEnum | |
| class Car(models.Model): | |
| # Encapsulation, we meet again. | |
| class Colors(ChoiceEnum): | |
| RED = 'red' | |
| WHITE = 'white' | |
| BLUE = 'blue' | |
| color = models.CharField(max_length=5, choices=Colors.choices(), default=Colors.RED) |
It is useful to write good commit message which shows professionalism. it shows whether a developer is a good collaborator or not?
The most basic element of keeping a healthy commit history: How to write a great commit message.
Just follow the seven rules below and you’re on your way to committing like a pro.
| """ | |
| 1. Write a Python program to get a string from a given string | |
| where all occurrences of its first char have been changed to '$', | |
| except the first char itself. | |
| Sample String : 'restart' | |
| Expected Result : 'resta$t' | |
| """ | |
| """ |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| ``inspect_mate`` provides more methods to get information about class attribute | |
| than the standard library ``inspect``. | |
| This module is Python2/3 compatible, tested under Py2.7, 3.3, 3.4, 3.5, 3.6. | |
| Includes tester function to check: |
| class HelloWorld: | |
| def __init__(self, name): | |
| self.name = name.capitalize() | |
| def sayHi(self): | |
| print "Hello " + self.name + "!" | |
| hello = HelloWorld("world") | |
| hello.sayHi() |
| import time | |
| import random | |
| import threading | |
| from queue import Queue | |
| from threading import Thread | |
| def crawler(queue): | |
| while True: |