I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.
I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.
This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.
I appreciate the effort you've put into documenting this, but there are a number of inaccuracies here that need to be addressed. We get
| android.permission.REAL_GET_TASKS | |
| android.permission.ACCESS_CACHE_FILESYSTEM | |
| android.permission.REMOTE_AUDIO_PLAYBACK | |
| android.permission.REGISTER_WINDOW_MANAGER_LISTENERS | |
| android.permission.INTENT_FILTER_VERIFICATION_AGENT | |
| android.permission.BIND_INCALL_SERVICE | |
| android.permission.WRITE_SETTINGS | |
| android.permission.CONTROL_KEYGUARD | |
| android.permission.CONFIGURE_WIFI_DISPLAY | |
| android.permission.ACCESS_WIMAX_STATE |
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 |
| import os | |
| import urllib2 | |
| import contextlib | |
| import StringIO | |
| from django.core.files.storage import get_storage_class, FileSystemStorage | |
| from django.core.files import File | |
| from django.conf import settings | |
| from galleries.models import GalleryImage |
| import os | |
| from django.conf import settings | |
| from django.core.files import File | |
| from django.core.files.storage import FileSystemStorage | |
| class LocalMediaSaveMixin(object): | |
| """Mixin class to for backing up media files on model that has | |
| image/file fields. To use it, ensure to keep in my python multiple |
| AF | |
| AL | |
| DZ | |
| AS | |
| AD | |
| AO | |
| AI | |
| AQ | |
| AG | |
| AR |
| import cStringIO | |
| import six | |
| import uuid | |
| from base64 import decodestring | |
| from mimetypes import guess_type, guess_extension | |
| from django.core.files.uploadedfile import SimpleUploadedFile | |
| class Base64CharField(serializers.CharField): | |
| """ |
| # Remap prefix from `C-b` to `C-a` | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # Easy reload config file. | |
| # bind r source-file ~/.tmux.conf | |
| bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
| bind-key M split-window -h "vim ~/.tmux.conf" |
| def clean_html(content): | |
| import re | |
| TAG_RE = re.compile(r'<[^>]+>') | |
| return TAG_RE.sub('', content).strip() |
