Skip to content

Instantly share code, notes, and snippets.

View taner45's full-sized avatar

Taner yılmaz taner45

  • 1974
  • Turkey/Ankara
View GitHub Profile
@taner45
taner45 / app.py
Created December 26, 2023 17:00 — forked from mneedham/app.py
ATP Head to Head
import streamlit as st
import duckdb
from streamlit_searchbox import st_searchbox
atp_duck = duckdb.connect('atp.duck.db', read_only=True)
def search_players(search_term):
query = '''
SELECT DISTINCT winner_name AS player
FROM matches
# Load the contents of the receipt file
receipt_file = open('./receipt_data.bin', 'rb').read()
# Use asn1crypto's cms definitions to parse the PKCS#7 format
from asn1crypto.cms import ContentInfo
pkcs_container = ContentInfo.load(receipt_file)
# Extract the certificates, signature, and receipt_data
certificates = pkcs_container['content']['certificates']
signer_info = pkcs_container['content']['signer_infos'][0]