I was able to compile and cross compile the gnu and musl variants to all of our target triples :)
-
Install the cargo-zigbuild and dependencies (requires python3)
pip3 install ziglang cargo install cargo-zigbuild
import sqlite3 | |
import glob | |
import csv | |
import os | |
def get_annotation_db_path(): | |
pattern = os.path.expanduser("~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation*.sqlite") | |
return glob.glob(pattern)[0] | |
def get_library_db_path(): |
services: | |
- docker:24.0.5-dind | |
variables: | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_DRIVER: overlay2 | |
DOCKER_TLS_CERTDIR: "" # don't start over TLS | |
meta-build-image: | |
interruptible: true |
from langchain.llms.base import LLM | |
from typing import Optional, List | |
from revChatGPT.V1 import Chatbot | |
class revChatGPT(LLM): | |
chatbot: Chatbot = Chatbot(config={ | |
"access_token": "<your token here>" | |
}) |
...and obviously we're building a workaround. But I'm absolutely flabbergasted that a standard <input type="date">
HTML field, in a standard browser, from a company that bases its reputation good design, could be so dreadful.
I'm the developer for a startup that sells a genetic test to recommend medications for high blood pressure. For medical reasons we need to know our customers' birth date. Most of our customers are in their 60s or older. We've found that many of them use iPads or iPhones. And they're the ones who complain to our customer support that our site is unusable.
# Add this to a "Run Script" build phase in your app's main target, as the last step. | |
# It will use the pluginkit command-line tool to force the plugin system on macOS to add your extensions to its database, making them available. | |
# I made this specifically for widgets, but it should work for pretty much any extension type (appex bundle). | |
find $CODESIGNING_FOLDER_PATH -name '*.appex' -exec pluginkit -a {} \; |
import UIKit | |
extension UITextField { | |
/// Add a trailing placeholder label that tracks the text as it changes | |
func addTrailingPlaceholder(_ placeholder: String) { | |
let label = UILabel() | |
label.text = placeholder | |
label.alpha = 0.3 | |
label.isHidden = true | |
let container = UIView() |
@propertyWrapper | |
public struct PublishedObject<Value: ObservableObject> { // wrappedValue 要求符合 ObservableObject | |
public var wrappedValue: Value | |
public init(wrappedValue: Value) { | |
self.wrappedValue = wrappedValue | |
} | |
public static subscript<OuterSelf: ObservableObject>( | |
_enclosingInstance observed: OuterSelf, |
// ============================================================================= | |
// XNU kperf/kpc demo | |
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges | |
// | |
// | |
// Demo 1 (profile a function in current thread): | |
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database. | |
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist | |
// M2 (Pro/Max): /usr/share/kpep/a15.plist | |
// M3: /usr/share/kpep/as1.plist |