Skip to content

Instantly share code, notes, and snippets.

@podrabinek
podrabinek / tennis_odds.json
Last active May 12, 2026 16:47
Tennis: Polymarket + OddsPortal odds (live-updated)
{
"timestamp_start": "2026-05-12T16:46:59",
"timestamp_end": "2026-05-12T16:47:54",
"duration_seconds": 54.2,
"matches": {
"5498464_2217702": {
"fixture_id": 5498464,
"market_id": "2217702",
"fixture_name": "Jan Choinski VS Juan Pablo Ficovich",
"oddsportal_match_url": "/tennis/h2h/augusto-loureiro-SEAHRANJ/bini-scramin-GOcY2qv8/#KnqA7spS",
@podrabinek
podrabinek / category-sticky-posts.php
Created June 1, 2023 20:21 — forked from willmot/category-sticky-posts.php
Show sticky posts on category archive pages
/**
* Adds sticky posts to your category archive
* pages.
*
* Works in exactly the same way as sticky posts work
* on the homepage, including all the negatives like
* breaking the posts_per_page and only showing
* them on page 1 etc.
*
* @param array $posts
@podrabinek
podrabinek / replace-nbsp-with-space.php
Created March 27, 2022 17:40
Replace nbsp with space in PHP
public function replaceNbspWithSpace($text) {
$string = htmlentities($text, ENT_QUOTES, 'utf-8');
$text = str_replace(" ", " ", $string);
$text = html_entity_decode($text);
return $text;
}