Skip to content

Instantly share code, notes, and snippets.

View rexwangcc's full-sized avatar

Rex rexwangcc

View GitHub Profile
@knight42
knight42 / compare_oss_cdn.py
Created November 3, 2022 03:29
比较阿里云 OSS 于 CDN 价格
#!/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
@k-ye
k-ye / metadata
Last active March 30, 2022 09:38
Taichi CLA
{
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name"
},
"email": {
"title": "E-Mail",
"type": "string",
"githubKey": "email"
@DavidWells
DavidWells / netlify.toml
Last active June 27, 2024 14:43
All Netlify.toml & yml values
[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)
@sleibrock
sleibrock / smallest-types-in-python.py
Created October 10, 2016 17:48
Size of Types in Python
#!/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