I hereby claim:
- I am markwatson on github.
- I am markwatson (https://keybase.io/markwatson) on keybase.
- I have a public key ASCuAq64t3gLeQezhPXltcKBo12vkezVThpaCWjAF65M2Ao
To claim this, I am signing this object:
| theme = "Solarized Dark Higher Contrast" | |
| font-family = "JetBrainsMono Nerd Font" | |
| font-size = 16 | |
| shell-integration = bash | |
| font-thicken | |
| background-opacity = 0.95 | |
| background-blur = true | |
| window-height = 40 | |
| window-width = 120 | |
| clipboard-write = allow |
| # SPDX-FileCopyrightText: 2018 Kattni Rembor for Adafruit Industries | |
| # | |
| # SPDX-License-Identifier: MIT | |
| # Modified by Mark Watson, 2025 (MIT license) | |
| """CircuitPython Essentials HID Keyboard example""" | |
| import time | |
| import board | |
| import usb_hid |
| from sentence_transformers import SentenceTransformer | |
| import numpy as np | |
| import torch | |
| def find_similar_texts(query_text, texts, k=3): | |
| """ | |
| Finds the most similar texts to a query using Sentence Transformers. | |
| Args: |
| [{"crv":"P-256","x":"AK8tZe41dys_C6BTzKdueyB4aZ4Wf-PCujzb7j3i7m2d","y":"Ziv-DVie-hMW4GV9jzlPqs77nsu0Msh0-TU3lgXUdE0=","kty":"EC","use":"sig","keyOps":["sign","verify"],"alg":"ES256","kid":"arn:aws:kms:us-east-1:000000000000:key/0d134cc0-7bd3-48a9-89eb-e7cfb0188b41"}] |
I hereby claim:
To claim this, I am signing this object:
| public java.lang.String toString() { | |
| #if ( $members.size() > 0 ) | |
| #set ( $i = 0 ) | |
| return "{\"_class\":\"$classname\", " + | |
| #foreach( $member in $members ) | |
| #set ( $i = $i + 1 ) | |
| #if ( $i == $members.size() ) | |
| #set ( $postfix = "+" ) | |
| #else | |
| #set ( $postfix = "+ "", "" + " ) |
| $.fn.mwOnChange = function(callback, timeout) { | |
| return $(this).each(function() { | |
| if (timeout === undefined) { | |
| timeout = 500; | |
| } | |
| var eventNames = 'keydown paste input'; | |
| var timeoutId = null; | |
| $(this).on(eventNames, function(e) { | |
| var self = this; |
| var createEl = function(type, props, children) { | |
| var el = document.createElement(type); | |
| if (props) { | |
| for (var key in props) { | |
| if (props.hasOwnProperty(key)) { | |
| if (key == "css") { | |
| if (props[key].length > 0) { | |
| el.style.cssText = props[key].join(';') + ";"; | |
| } | |
| } else { |
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
| import re | |
| import unittest | |
| class CsvReader(object): | |
| """ | |
| Reads CSV files while handling all types of edge cases. | |
| """ | |
| def __init__(self, lines): | |
| """ | |
| A new CSV reader with the given lines. |