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 | |
class NonogramDescriptor(object): | |
def __init__(self, nonogram): | |
self.nonogram = nonogram | |
self.symbol = '*' | |
def describe(self): | |
column_length = len(self.nonogram[0]) |
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 | |
#Result: https://goo.gl/photos/efVQbcnRHd8Jp2EG8 | |
import inspect | |
from datetime import datetime | |
from random import randint | |
from IPython import embed | |
from PIL import Image, ImageFilter, ImageDraw, ImageFont |
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 | |
""" | |
###Installation: | |
$ pip install Pillow | |
###Execution: | |
$ python script_2.py | |
###Results: |
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 | |
""" | |
###Installation | |
$ pip install Pillow | |
###Execution | |
$ python script_3.py | |
###Results |
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 | |
""" | |
###Installation | |
$ pip install Pillow | |
###Execution | |
$ python script_3.py | |
http://www.wikiart.org/en/dadamaino/238-combinazioni-cromatiche-con-16-colori-moltiplicati-fra-loro-1969 |
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 | |
""" | |
###Installation | |
$ pip install Pillow | |
###Execution | |
$ python script_5.py | |
###Reference: |
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 | |
""" | |
###Installation | |
$ pip install Pillow | |
###Execution | |
$ python script_6.py | |
###Reference: |
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
```python | |
import httplib2 | |
import os | |
import argparse | |
import base64 | |
import email | |
import re | |
from apiclient import errors | |
from apiclient import discovery |
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 sys | |
import os | |
from dateutil.parser import parse | |
HERE = os.path.abspath('/home/ubuntu/crm/') | |
ROOT = os.path.join(HERE) | |
sys.path.append(ROOT) | |
from server.settings import config |
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
from dateutil.parser import parse | |
import pytz | |
datetime_with_timezone = parse(data.get('datetime')).replace(tzinfo=pytz.utc) |
OlderNewer