enum gs_usb_breq {
GS_USB_BREQ_HOST_FORMAT = 0,
GS_USB_BREQ_BITTIMING,
GS_USB_BREQ_MODE,
GS_USB_BREQ_BERR,
GS_USB_BREQ_BT_CONST,
GS_USB_BREQ_DEVICE_CONFIG,
GS_USB_BREQ_TIMESTAMP,
// | |
// ViewController.swift | |
// UIMenu-Demo | |
// | |
// Created by Seb Vidal on 28/05/2024. | |
// | |
import UIKit | |
class ViewController: UIViewController { |
// Copyright (C) 2024 Gwendal Roué | |
// | |
// 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 furnished to do so, subject to the | |
// following conditions: | |
// |
// A simple serial queue. Every operation sent through the queue will be executed | |
// in first-in first-out order. Every operation will complete its execution fully, | |
// even if it includes suspension points, prior to the next operation commencing. | |
// | |
// TIP: If calling from a global actor like @MainActor annotate your closure to | |
// get better ergonomics: `queue.send { @MainActor in /* ... */ }` | |
public final class AsyncSerialQueue: Sendable { | |
import os | |
public struct Gate<T: Sendable>: Sendable { | |
struct Pass: Sendable { | |
var value: T | |
var continuaton: UnsafeContinuation<Void, Never> | |
} | |
struct Pending: Sendable { | |
var continuation: UnsafeContinuation<T, Never> |
// | |
// BikeRRUITests.swift | |
// BikeRRUITests | |
// | |
// Created by Oliver Epper on 14.08.21. | |
// | |
// swiftlint:disable all | |
import XCTest |
@propertyWrapper | |
struct Storage<T: AppStorageConvertible>: RawRepresentable { | |
var rawValue: String { wrappedValue.storedValue } | |
var wrappedValue: T | |
init?(rawValue: String) { | |
guard let value = T.init(rawValue) else { return nil } | |
self.wrappedValue = value | |
} | |
init(wrappedValue: T) { |
import SwiftUI | |
struct MyValue: _ViewTraitKey { | |
static var defaultValue: Int = 0 | |
} | |
extension View { | |
func myValue(_ value: Int) -> some View { | |
_trait(MyValue.self, value) | |
} |
Tested on Ubuntu 20, 21 earlier and they were not working. So upgraded Ubutbu to latest 22 version.
The issue is: The built in Kernals of Ubuntu and many Linux Kernals (between ) have the CH340 drivers broken / have bugs and not fixed (from kernal 5.4.0-87 and above)
Note: I didn't try on linux kernal 5.4.0-86 my self. I though I will see how is the situation in the latest linux kernal (as of 16/05/2022)
Das BMVI hat eine völlig nutzlose App gebaut. Eine Autobahn-Info App.
Nein, es gibt jetzt nämlich eine offene API für aktuelle Verwaltungsdaten in Bezug auf Baustellen-Informationen, Webcams, Parkplätze, … - bestimmt für jemand nützlich.
Hier gibt es eine OpenAPI Spec von @creckord: https://gist.github.com/creckord/a2e09267f5fdfadc2cd75eedb3182b8a