Skip to content

Instantly share code, notes, and snippets.

@rjungemann
rjungemann / Communicator.h
Created June 21, 2010 00:45
How to open a TCP socket in Objective-C
#import <Foundation/Foundation.h>
@interface Communicator : NSObject <NSStreamDelegate> {
@public
NSString *host;
int port;
}
- (void)setup;
@hhyyg
hhyyg / code.swift
Last active November 17, 2020 09:16
How to access current firebase user from iOS App Extension.
import Foundation
import KeychainAccess //https://github.com/kishikawakatsumi/KeychainAccess
import Firebase
//Requires shared Keychain with the same group name
class ApplicationBuilder {
enum Target {
case app