- Software update
- Setup XCode
- Install Oh-my-ZSH
curl -L http://install.ohmyz.sh | sh
- Generate SSH keys
- Install Dotfiles
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
curl -L http://install.ohmyz.sh | sh
| from uuid import UUID | |
| def validate_uuid4(uuid_string): | |
| """ | |
| Validate that a UUID string is in | |
| fact a valid uuid4. | |
| Happily, the uuid module does the actual | |
| checking for us. |
| from django.db.models import get_apps, get_models | |
| from django.contrib.auth.management import create_permissions | |
| Permission.objects.all().delete() | |
| [create_permissions(app, get_models(app), 2) for app in get_apps()] |
| """ | |
| jQuery templates use constructs like: | |
| {{if condition}} print something{{/if}} | |
| This, of course, completely screws up Django templates, | |
| because Django thinks {{ and }} mean something. | |
| Wrap {% verbatim %} and {% endverbatim %} around those | |
| blocks of jQuery templates and this will try its best |