Skip to content

Instantly share code, notes, and snippets.

View mkwatson's full-sized avatar

Mark Watson mkwatson

View GitHub Profile

Based on the search results, here's a detailed analysis of Tank Dell's receiving yards performance:

Recent Performance

Tank Dell has shown promising performance in his recent games:

  • In his last 5 games, Dell has accumulated 192 receiving yards on 20 receptions[6].
  • His average yards per reception over this period is 9.6 yards[6].
  • Dell's best performance in these 5 games was against Minnesota, where he caught 5 passes for 62 yards[6].

Star History

Star History Chart

package main
import "fmt"
// outerFunction returns a closure (an inner function) that captures and uses the variable 'x'
func outerFunction(x int) func(int) int {
// The inner function, which forms a closure
return func(y int) int {
return x + y // 'x' is captured from outerFunction's scope
}
# Base URL and HTTP method
# Query Parameters:
# - teamId=110 is for the Orioles
# - daysBack=-6 gathers data for the previous week
curl -G 'https://bdfed.stitch.mlbinfra.com/bdfed/stats/player' \
--data-urlencode 'stitch_env=prod' \
--data-urlencode 'season=2023' \
--data-urlencode 'sportId=1' \
--data-urlencode 'stats=season' \
def analyze_stats(stats):
insights = ''
if stats['orioles']['batting_average'] > stats['diamondbacks']['batting_average']:
insights += 'The Orioles have a higher batting average than the Diamondbacks. '
else:
insights += 'The Diamondbacks have a higher batting average than the Orioles. '
if stats['orioles']['slugging_percentage'] > stats['diamondbacks']['slugging_percentage']:
insights += 'The Orioles have a higher slugging percentage than the Diamondbacks. '
else:
{
"data": {
"offer": {
"offer": {
"id": "58950f92-62f2-4de8-b9df-744202c7cd42",
"pathSegment": "dub-nation-deals-b5a6e0b",
"offerShape": "event",
"status": "draft",
"selections": {
"views": [
query GetOffer($offerPathSegment: String!, $limit: Int!, $offset: Int = 0, $searchQuery: String, $minPrice: Int, $maxPrice: Int, $startDate: DateTime, $endDate: DateTime, $level1Filter: String, $level2Filter: String, $showAda: Boolean, $eventSort: EventSelectionsSort, $eventView: EventSelectionsView, $tickets: Int, $rootOfferId: UUID, $appliedCodes: [String!]) {
offer {
offer(pathSegment: $offerPathSegment, rootOfferId: $rootOfferId, appliedCodes: $appliedCodes) {
...offerInfo
__typename
children(limit: $limit, offset: $offset, searchQuery: $searchQuery, minPrice: $minPrice, maxPrice: $maxPrice, startDate: $startDate, endDate: $endDate, level1Filter: $level1Filter, level2Filter: $level2Filter, showAda: $showAda, eventSort: $eventSort, eventView: $eventView, tickets: $tickets) {
limit
offset
total
results {
from playwright.sync_api import Playwright, sync_playwright, expect
def run(playwright: Playwright) -> None:
browser = playwright.chromium.launch(headless=False)
context = browser.new_context()
page = context.new_page()
page.goto("https://www.nba.com/warriors/tickets/dub-nation-deals-activate-your-offer")
import json
import requests
from bs4 import BeautifulSoup
url = 'https://www.espn.com/nba/game/_/gameId/401360739'
soup = BeautifulSoup(requests.get(url).text, 'html.parser')
play_by_play = soup.find("div", {"data-plays": True}).attrs['data-plays']
print(json.dumps(json.loads(play_by_play), indent=2))
curl 'https://core-hsr.duneanalytics.com/v1/graphql' \
--data-raw $'
{
"operationName": "FindResultDataByResult",
"variables": { "result_id": "f0de20b7-fad3-4b20-adcd-4f8885292b7c" },
"query":"query FindResultDataByResult($result_id: uuid\u0021) {\\n query_results(where: {id: {_eq: $result_id}}) {\\n id\\n job_id\\n error\\n runtime\\n generated_at\\n columns\\n __typename\\n }\\n get_result_by_result_id(args: {want_result_id: $result_id}) {\\n data\\n __typename\\n }\\n}\\n"}
'