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
import os | |
import sys | |
import pycodestyle | |
from django.conf import settings | |
class PEP8Error(BaseException): | |
pass |
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
#!/bin/bash | |
if [[ $1 == http* ]]; | |
then | |
image=$1; | |
else | |
image=$(base64 $1); | |
fi | |
echo "Your uploaded image URL is:" |