git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
| from cProfile import Profile | |
| from django.core.management.base import BaseCommand | |
| class ProfileEnabledBaseCommand(BaseCommand): | |
| """Enable profiling a command with --profile. | |
| Requires child class to define _handle instead of handle. | |
| via https://gist.github.com/dfrankow | |
| """ |
| from django.contrib import admin | |
| class ReadOnlyModelAdmin(admin.ModelAdmin): | |
| """ | |
| ModelAdmin class that prevents modifications through the admin. | |
| The changelist and the detail view work, but a 403 is returned | |
| if one actually tries to edit an object. |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <ctype.h> | |
| #include <unistd.h> | |
| int main (int argc, char *argv[]) | |
| { | |
| int opcao; // Opção passada pelo usuário ao programa. | |
| int indice; // Usado para pegar argumentos que não são opções | |
| // Nem argumentos usados em opções. |