Skip to content

Instantly share code, notes, and snippets.

View mxmehl's full-sized avatar

Max Mehl mxmehl

View GitHub Profile
1c1
< CNRI OPEN SOURCE LICENSE AGREEMENT
---
> CNRI OPEN SOURCE GPL-COMPATIBLE LICENSE AGREEMENT
5c5
< BY CLICKING ON "ACCEPT" WHERE INDICATED BELOW, OR BY COPYING, INSTALLING OR OTHERWISE USING PYTHON 1.6, beta 1 SOFTWARE, YOU ARE DEEMED TO HAVE AGREED TO THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT.
---
> BY CLICKING ON "ACCEPT" WHERE INDICATED BELOW, OR BY COPYING, INSTALLING OR OTHERWISE USING PYTHON 1.6.1 SOFTWARE, YOU ARE DEEMED TO HAVE AGREED TO THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT.
7c7
< 1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6, beta 1 software in source or binary form and its associated documentation, as released at the www.python.org Internet site on August 4, 2000 ("Python 1.6b1").
@mxmehl
mxmehl / grep_compare.py
Last active March 10, 2023 15:36
Performance comparison: What's the fasted way to find a string in differently sized files (Python)
"""Compare different ways to search in a file"""
# See background and results: https://github.com/fsfe/reuse-tool/issues/696#issuecomment-1463976952
import mmap
from pathlib import Path
# from binaryornot.check import is_binary
FILES = (
"10k.bin",
@mxmehl
mxmehl / keybase.md
Last active January 15, 2018 13:17
My identity proof for keybase.io

Keybase proof

I hereby claim:

  • I am mxmehl on github.
  • I am mxmehl (https://keybase.io/mxmehl) on keybase.
  • I have a public key ASAEQpX_EikbDebniQV4cm8u1OGetyv8xw7aGPFM3Mfy-go

To claim this, I am signing this object: