See :
- https://hono.dev/middleware/third-party
- https://github.com/honojs/middleware/tree/main/packages/zod-openapi
- https://github.com/honojs/middleware/tree/main/packages/swagger-ui
Run
If you have any issues with macOS, or need anything related to it check this documentation
Install Xcode Command Line tools :
// Allows to call a Android java function asynchronously | |
// spawn long running computations/io on the Java/Android without blocking the JS/Website running inside the WebView | |
// Eg. const result = await callAndroidAsync('javaFunction', { param1: 'value1', param2: 'value2' }) | |
// Please give a star if you find this useful | |
export async function callAndroidAsync(javaFuncName, params) { | |
const rand = 'asyncJava_' + Math.floor(Math.random() * 1000000) | |
window[rand] = {} | |
// func called from android |
Worth a read for some more context.
Create the file in the root of the project (where your Package.swift
file lives as well), and use the following contents:
/// Package.xcconfig
sealed class Result<A, E> { | |
fun <B> map(mapping: (A) -> B): Result<B, E> = | |
when (this) { | |
is Success -> Success(mapping(value)) | |
is Failure -> Failure(reason) | |
} | |
fun <B> bind(mapping: (A) -> Result<B, E>): Result<B, E> = | |
when (this) { | |
is Success -> mapping(value) |
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") | |
java_import_external( | |
name = "com_google_auto_common", | |
jar_sha256 = "eee75e0d1b1b8f31584dcbe25e7c30752545001b46673d007d468d75cf6b2c52", | |
jar_urls = [ | |
"http://domain-registry-maven.storage.googleapis.com/repo1.maven.org/maven2/com/google/auto/auto-common/0.7/auto-common-0.7.jar", | |
"http://repo1.maven.org/maven2/com/google/auto/auto-common/0.7/auto-common-0.7.jar", | |
], | |
licenses = ["notice"], # Apache 2.0 |
module.exports = { | |
package: null, | |
syntax: "proto2", | |
messages: [{ | |
name: "Msg", | |
syntax: "proto2", | |
fields: [{ | |
rule: "optional", | |
type: "Commands", | |
name: "command_number", |
#!/bin/bash | |
# run_ios_sim builds and runs an iOS app on the simulator | |
# | |
# It is designed to replicate the behavior of "Run" in Xcode and assumes basic | |
# xcodebuild usage. | |
# | |
# USAGE: | |
# export IOS_SIM_UDID=342F9A20-DF48-41A9-BE60-C6B35F47E97F; \ | |
# export BUNDLE_IDENTIFIER=a.Some; \ | |
# export APP_PATH=$PWD/Build/Debug-iphonesimulator/$APP_NAME.app \ |
curl -X PUT -T ./{file.dat} -H "x-ms-date: $(date -u)" -H "x-ms-blob-type: BlockBlob" "https://{storageaccount}.blob.core.windows.net/backups/{file.dat}?{sas-token}" |
class Functor { | |
constructor(...args) { | |
var self = this; | |
if (typeof this.constructor._functorlock === 'undefined') { | |
this.constructor._functorlock = true; | |
return ((functorClass) => { | |
var inst = new self.constructor(...args); | |
var out = inst.call.bind(inst); | |
for (let i of (Object.getOwnPropertyNames(inst).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(inst))))) { |