Skip to content

Instantly share code, notes, and snippets.

View an-dev's full-sized avatar

Andy an-dev

View GitHub Profile
{"name":"andy","settings":"{\"settings\":\"{\\t\\n // If this setting is false, no telemetry will be sent regardless of the new setting's value. Deprecated due to being combined into the `telemetry.telemetryLevel` setting.\\n\\t// Enable crash reports to be collected. This helps us improve stability. \\n\\t// This option requires restart to take effect.\\n\\t\\\"telemetry.enableCrashReporter\\\": false,\\n\\n\\t// If this setting is false, no telemetry will be sent regardless of the new setting's value. Deprecated in favor of the `telemetry.telemetryLevel` setting.\\n\\t// Enable diagnostic data to be collected. This helps us to better understand how Visual Studio Code is performing and where improvements need to be made. [Read more](https://go.microsoft.com/fwlink/?LinkId=521839) about what we collect and our privacy statement.\\n\\t\\\"telemetry.enableTelemetry\\\": false,\\n\\n\\t// Enable feedback mechanisms such as the issue reporter, surveys, and feedback options in features like Copilot Chat.\\n\\t\
@an-dev
an-dev / MultiPartSerializerForRestlessTornado.py
Created August 6, 2019 15:43
Multipart file upload aware custom JSON serializer for Restless using Tornado utils
#!/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
@an-dev
an-dev / validators.py
Created April 7, 2019 21:52 — forked from mobula/validators.py
Performs file upload and image upload validation for django.
# -*- 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)