Skip to content

Instantly share code, notes, and snippets.

View mairi17's full-sized avatar

Mairi Macdonald mairi17

  • Inkling
  • San Francisco
View GitHub Profile
@objcode
objcode / ConcurrencyHelpers.kt
Last active May 2, 2024 08:05
Helpers to control concurrency for one shot requests using Kotlin coroutines.
/* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@andybangs
andybangs / GSBeaconManager.h
Created August 27, 2016 16:21
Example using GSEventEmitter
#import <Foundation/Foundation.h>
#import "RCTBridge.h"
@interface GSBeaconManager : NSObject <RCTBridgeModule>
@end
@andybangs
andybangs / GSEventEmitter.h
Last active February 4, 2019 03:03
Example RCTEventEmitter Subclass
#import "RCTEventEmitter.h"
#import "RCTBridge.h"
@interface GSEventEmitter : RCTEventEmitter <RCTBridgeModule>
+ (BOOL)application:(UIApplication *)application didSightBeacon:(NSString *)beaconID;
+ (BOOL)application:(UIApplication *)application didDepartBeacon:(NSString *)beaconID;
@end