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
Save as temp.json | |
[ | |
{ | |
"origin": ["*"], | |
"method": ["*"] | |
} | |
] | |
Now, use command to update your bucket |
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 | |
source /opt/python/run/venv/bin/activate | |
source /opt/python/current/env | |
cd /opt/python/current/app | |
python manage.py |
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
# for kid's Python class | |
import math, random | |
import mcpi.block as block | |
from mcpi.minecraft import Minecraft | |
import time | |
def fibonacci_sphere(samples=1,randomize=True): | |
rnd = 1. | |
if randomize: |
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
Verifying that +devinvenable is my blockchain ID. https://onename.com/devinvenable |
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
image = Image.open(x) | |
try: | |
if hasattr(image, '_getexif'): # only present in JPEGs | |
for orientation in ExifTags.TAGS.keys(): | |
if ExifTags.TAGS[orientation]=='Orientation': | |
break | |
e = image._getexif() # returns None if no EXIF data | |
if e is not None: | |
exif=dict(e.items()) |