Skip to content

Instantly share code, notes, and snippets.

View iT-Boyer's full-sized avatar
🎯
Focusing

布衣男儿 iT-Boyer

🎯
Focusing
View GitHub Profile
@zeitiger
zeitiger / gist:1387f7d996f64b493608
Last active March 30, 2022 08:11
JSExportAs Workaround in Swift (simplified code example)
public typealias myFunctionDefAlias = (@objc_block (String, String, NSNumber) -> Void)
@objc
public protocol MyJSExportProtocol: JSExport {
// JSExportAs alternative in Swift via closure
var myFunction:myFunctionDefAlias? {get}
}
@objc
public class MyJSExportClass: NSObject, MyJSExportProtocol {
@staltz
staltz / introrx.md
Last active June 18, 2024 06:15
The introduction to Reactive Programming you've been missing
@xslim
xslim / UIAutomationAddon.js
Created February 22, 2011 22:00
UI Automation sample test file
/*
* Test
*/
function test(title, f, options) {
if (options == null) {
options = {
logTree: true
};
}