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 | |
#-*- coding: utf-8 -*- | |
""" | |
Goal: To examine which type is the smallest in Python | |
Types used: int, float, str, list, tuple, dict, set, frozenset | |
None, Ellipsis, object, lambda, function, Exception | |
""" | |
def f(): return |
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
[Settings] | |
ID = "Your_Site_ID" | |
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts. | |
[build] | |
# This is the directory to change to before starting a build. | |
base = "project/" | |
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root. | |
# This is the directory that you are publishing from (relative to root of your repo) |
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
{ | |
"name": { | |
"title": "Full Name", | |
"type": "string", | |
"githubKey": "name" | |
}, | |
"email": { | |
"title": "E-Mail", | |
"type": "string", | |
"githubKey": "email" |
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 -O | |
def compare_price(requests_count: int, cdn_hit_ratio: float, obj_size_kb: int): | |
cdn_traffic_per_gb_price = 0.24 | |
cdn_https_requests_per_10_thousand_price = 0.05 | |
cdn_back_to_origin_traffic_per_gb = 0.15 | |
oss_traffic_per_gb_price = 0.5 | |
oss_get_per_10_thousand_price = 0.01 |