I hereby claim:
- I am algmyr on github.
- I am algmyr (https://keybase.io/algmyr) on keybase.
- I have a public key whose fingerprint is 55EA 962C DA3D 118E B919 03F5 EB61 05ED 9DA2 5435
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # -*- coding: utf-8 -*- | |
| # | |
| #-- | |
| # Copyright (C) 2009-2016 Thomas Leitner <[email protected]> | |
| # | |
| # This file is part of kramdown which is licensed under the MIT. | |
| #++ | |
| # | |
| require 'prawn' |
| #!/bin/bash | |
| mode="$1" | |
| if [[ "$mode" == "perf" ]]; then | |
| cmd="$2" | |
| i=0 | |
| while true | |
| do | |
| echo "Test $((i+=1))" | |
| python gen.py > gendata |
| class Content: | |
| def __init__(self, *args): | |
| self.data = args | |
| def sizes(self): | |
| return [len(str(x)) for x in self.data] | |
| def __len__(self): | |
| return len(self.data) | |
| class Header(Content): | |
| def layout(self, style): |
| import json | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.patches as patches | |
| import matplotlib.lines as mlines | |
| import seaborn as sns | |
| sns.set(style="dark") | |
| # Data |
| struct FastI { | |
| char cur; | |
| char tmp[1 << 8]; | |
| #ifdef _WIN32 | |
| char nextChar() { | |
| return cur=_getchar_nolock(); | |
| } | |
| #else | |
| static constexpr int BUFSIZE = 1<<14; |
| import base64 | |
| import sys | |
| from io import BytesIO | |
| import requests | |
| from PIL import Image | |
| class Client: |
| import heapq | |
| from collections import defaultdict | |
| from dataclasses import dataclass | |
| import sys | |
| from typing import DefaultDict, Optional | |
| import numpy as np | |
| from PIL import Image, ImageDraw | |
| CELL_WIDTH = 96 |
| # ----------------------------------------------------------------------------- | |
| # Binary Knapsack Solver v0.1.0 | |
| # ----------------------------------------------------------------------------- | |
| # Copyright (c) 2025 Stefano Raneri | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
| no secret here? |