Skip to content

Instantly share code, notes, and snippets.

@thefinnomenon
thefinnomenon / cloudSettings
Last active April 28, 2020 23:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-28T23:44:19.224Z","extensionVersion":"v3.4.3"}
@thefinnomenon
thefinnomenon / AppDelegate.m
Created January 25, 2017 17:46
React Native Code Reloading on iOS Device Using ngrok
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "AppDelegate.h"
@thefinnomenon
thefinnomenon / RCTWebSocketExecutor.m
Created January 25, 2017 17:44
React Native iOS Remote Debugger using ngrok
...
- (void)setUp
{
if (!_url) {
NSUserDefaults *standardDefaults = [NSUserDefaults standardUserDefaults];
NSInteger port = [standardDefaults integerForKey:@"websocket-executor-port"];
if (!port) {
port = [[[_bridge bundleURL] port] integerValue] ?: 8081;