Skip to content

Instantly share code, notes, and snippets.

@tngzng
tngzng / keybase.md
Last active January 30, 2017 20:35

Keybase proof

I hereby claim:

  • I am stephtzhang on github.
  • I am ting (https://keybase.io/ting) on keybase.
  • I have a public key whose fingerprint is 4D07 1C17 F4A7 2007 9D61 9CE7 1D24 83F7 00EA 998A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tngzng on github.
  • I am ting (https://keybase.io/ting) on keybase.
  • I have a public key ASB7CVoK_4Dfzg2beR79-5oxBH-KXaYCqaGEbTRjnmZ1KAo

To claim this, I am signing this object:

import glob
import logging
import os
import time
from google.cloud import storage as cloud_storage
from googleapiclient import discovery, errors
SAVED_MODEL_PATH = '/path/to/local/model'

Keybase proof

I hereby claim:

  • I am tngzng on github.
  • I am tngzng (https://keybase.io/tngzng) on keybase.
  • I have a public key ASB3QGf8i3LXTYR47F8qPSBnTEWOrg1KNNYIrz0DWVOG0go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tngzng on github.
  • I am tngzng (https://keybase.io/tngzng) on keybase.
  • I have a public key ASB3QGf8i3LXTYR47F8qPSBnTEWOrg1KNNYIrz0DWVOG0go

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
aCeFc7QPc@q_mf.gzxy

ting to handle api async restart branch

  • test on dev
  • merge

sylvan to handle job troubleshooting branch

  • merge
  • manually update pi job schedule to run every 6 hours
@tngzng
tngzng / tennis_odds.py
Last active October 20, 2023 14:15
Tennis Scoring: Relationship b/w Points Won + Games Won
class Game:
def __init__(self):
self.p1_points = 0
self.p2_points = 0
def who_won(self):
'''
0, 1, 2, 3, 4
0, 15, 30, 40, win (need 4 points to win, and to win by 2)
'''
from typing import Union
number = Union[float, int]
def amt_owed_for_costs(costs: list[number],
total: number,
tax: number,
tip: number,
fixed_costs: list[number],
num_ppl: int) -> number: