Skip to content

Instantly share code, notes, and snippets.

@clokep
clokep / benchmark_jsonschema.py
Created August 12, 2021 17:27
JSON Schema benchmark
import pyperf
import time
import jsonschema
from jsonschema.exceptions import best_match
SCHEMA = {
"type": "object",
"properties": {
"displayname": {"oneOf": [{"type": "string"}, {"type": "null"}]},
@clokep
clokep / README.md
Last active August 10, 2020 17:43
Benchmark encoding many small strs vs. one large string
@clokep
clokep / download-links.py
Last active January 24, 2019 22:16
Get all links a user sent to Slack
@clokep
clokep / libib2goodreads.py
Last active March 3, 2016 14:14
Python script to convert an exported Libib (http://www.libib.com/) CSV to a format that goodreads (https://www.goodreads.com/) can import
# Copyright (c) 2016, Patrick Cloke
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES

WebRTC negotiation over IRC

Copyright (c) 2015 Patrick Cloke clokep@instantbird.org

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains intact.

WebRTC