Skip to content

Instantly share code, notes, and snippets.

View janklimo's full-sized avatar

Jan Klimo janklimo

View GitHub Profile
@janklimo
janklimo / outcome.json
Last active July 11, 2026 09:45
2026 World Cup Golden Boot Winner
{
"quoteToken": 0,
"questionNameAndDescription": [
"2026 World Cup Golden Boot Winner",
"Each associated outcome corresponds to a named individual football player. An outcome resolves to Yes if the corresponding player wins the adidas Golden Boot, awarded to the top goalscorer of the 2026 FIFA World Cup (hosted by Canada, Mexico, and the United States). The top goalscorer is the player credited by FIFA with the most goals scored during the 2026 FIFA World Cup tournament, including the group stage and all knockout rounds. Only goals scored in regulation and extra time count toward a player's total; goals scored in a penalty shoot-out to decide a match do not count, consistent with FIFA's official scoring records. Where two or more players are tied on goals, the winner is determined by FIFA's official tiebreakers applied in order: (1) the greater number of assists, (2) the fewer minutes played, and (3) the fewer goals scored from the penalty spot, or any other official FIFA tiebreaking procedure use
@janklimo
janklimo / outcome.json
Last active June 27, 2026 14:38
Democratic Presidential Nominee 2028
{
"quoteToken": 0,
"questionNameAndDescription": [
"2028 Democratic Presidential Nominee",
"Each associated outcome corresponds to a named individual. An outcome resolves to Yes if the corresponding individual becomes the Democratic Party's nominee for President of the United States in the 2028 U.S. presidential election. An individual becomes the nominee if they (a) receive the Democratic Party's presidential nomination through the official nominating process of the 2028 Democratic National Convention, including any delegate roll-call vote, or any official party process used if the nomination is decided before, during, or after the convention, and (b) accept that nomination. Acceptance may be established through a formal acceptance speech, written acceptance, official filing, or any other clear public acceptance recognized by the Democratic Party. Exactly one outcome resolves to Yes and all other outcomes resolve to No. An outcome resolves to No once it becomes impossible for the corresponding in
@janklimo
janklimo / scheme_exact_hyperliquid.md
Last active April 7, 2026 15:40
x402 on Hyperliquid

Scheme: exact on Hyperliquid

Versions supported

  • v1 - not supported.
  • v2

Supported Networks

This spec uses a custom CAIP-2 namespace for Hyperliquid L1 (HyperCore):

@janklimo
janklimo / Top 30.md
Last active May 18, 2025 06:02
Top 30 Hyperliquid Builder Codes by Fees. Fees below are in USDC (6 decimals).
Address Code Amount ($)
0x0cbf655b0d22ae71fba3a674b0e1c0c7e7f975af PVP 6,995,987
0x05984fd37db96dc2a11a09519a8def556e80590b OKTO 633,702
0x1cc34f6af34653c515b47a83e1de70ba9b0cda1f AXIOM 512,638
0xc1f4d15c16a1f3555e0a5f7aefd1e17ad4aaf40b KINTOHL 257,158
0x49ae63056b3a0be0b166813ee687309ab653c07c N/A 91,577
0xe966a12bf7b93838096e4519a684519ab22df618 HYPURRDASH 85,705
0x055ba87dbff972e23bcf26ea4728c31e05240e66 COPIN2 11,471
0xbe622f92438ae55b12908b01eeace15d98ed1eec VOOI 11,260
@janklimo
janklimo / lucky_draw.py
Created April 1, 2025 10:39
HL lucky draw
import pandas as pd
import requests
import numpy as np
from typing import Dict, Tuple
class LuckyDrawSelector:
def __init__(
self,
):
@janklimo
janklimo / Output.txt
Created December 10, 2020 08:59
Ruby: try vs &.
"=== Memory when using `try` ==="
Total allocated: 40 bytes (1 objects)
Total retained: 0 bytes (0 objects)
allocated memory by gem
-----------------------------------
40 other
allocated memory by file
-----------------------------------
@janklimo
janklimo / config.yml
Created August 10, 2019 16:09
Robin PRO CircleCI config
version: 2.1
orbs:
aws-cli: circleci/aws-cli@0.1.13
jobs:
test:
parallelism: 1
working_directory: ~/src
docker:
- image: circleci/ruby:2.6-node-browsers
environment:
@janklimo
janklimo / publish_client
Created August 9, 2019 09:00
Publish client
#!/bin/sh
# Clean slate
echo "Cleaning up old assets and packs..."
rm -rf public/assets public/packs
# Precompile assets for production
echo "Precompiling assets..."
bundle exec rake assets:precompile RAILS_ENV=production PUBLISH_CLIENT=true
@janklimo
janklimo / benchmark.rb
Last active February 22, 2024 08:59
Comparison of memory usage: AXLSX vs. rubyXL
# frozen_string_literal: true
require 'axlsx'
require 'rubyXL'
require 'rubyXL/convenience_methods/worksheet'
require 'memory_profiler'
rows = 1_000
columns = 20
@janklimo
janklimo / memory.rb
Created September 29, 2017 07:25
Measure how much memory gets used by a Ruby process
def print_memory_usage
memory_before = `ps -o rss= -p #{Process.pid}`.to_i
yield
memory_after = `ps -o rss= -p #{Process.pid}`.to_i
puts "Memory: #{((memory_after - memory_before) / 1024.0).round(2)} MB"
end