This file contains hidden or 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 -*- | |
cssText = '''article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, summary { display: block; } | |
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } | |
audio:not([controls]) { display: none; height: 0; } | |
[hidden] { display: none; } | |
html { font-size: 100%; } | |
html, button, input, select, textarea { font-family: sans-serif; } | |
body, body { margin: 0; } | |
a:focus { outline: thin dotted; } |
This file contains hidden or 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 -*- | |
"""Json file module.""" | |
import os | |
import json | |
import logging | |
logger = logging.getLogger() | |
def read_json_from_file(file_path): |
This file contains hidden or 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
class Key: | |
"""Mock class.""" | |
def __init__(self, phrase): | |
self._phrase = phrase | |
class Function: | |
""" Mock class.""" | |
def __init__(self, phrase): | |
self._phrase = phrase |
This file contains hidden or 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
"""An example module for parsing json with JS style comments. | |
Primarily intended for parsing config files in json format, | |
where the use of comments may be desirable. | |
As Douglas Crockford suggests: | |
"Suppose you are using JSON to keep configuration files, | |
which you would like to annotate. Go ahead and insert all | |
the comments you like. Then pipe it through JSMin before |