This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"andy","settings":"{\"settings\":\"{\\n \\\"files.exclude\\\": {\\n \\\"**/*.pyc\\\": true,\\n \\\"**/*.min.js\\\": true,\\n \\\"**/*.js.map\\\": true,\\n \\\"/static/\\\": true,\\n \\\"node_modules\\\": true,\\n \\\"build\\\": true,\\n \\\"*.log\\\": true,\\n \\\"*.egg-info\\\": true\\n },\\n \\\"editor.formatOnSave\\\": true,\\n \\\"search.followSymlinks\\\": false,\\n \\\"files.trimTrailingWhitespace\\\": true,\\n \\\"files.trimFinalNewlines\\\": true,\\n \\\"files.insertFinalNewline\\\": true,\\n \\\"[typescriptreact]\\\": {\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true\\n }\\n },\\n \\\"[typescript]\\\": {\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true\\n }\\n },\\n \\\"[javascript]\\\": {\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true\\n }\\n },\\n \\\"[javascriptreact]\\\": {\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding:utf-8 | |
import StringIO | |
import os | |
import uuid | |
import restless.exceptions | |
import restless.serializers | |
import restless.tnd | |
import tornado.httputil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# https://gist.github.com/mobula/da99e4db843b9ceb3a3f | |
# @brief | |
# Performs file upload validation for django. | |
# with Django 1.7 migrations support (deconstructible) | |
# Provides: | |
# - FileValidator | |
# - ImageValidator (adds Image specific validation using PIL) |