Skip to content

Instantly share code, notes, and snippets.

// zeus.ts
interface User {
firstName: string,
lastName: string
}
interface Entity {
id: string
}
type UserEntity = User & Entity;
@rpak
rpak / Environment.m
Created June 17, 2011 22:46
Sample code for a Singleton that provides configuration or environment data
#import "Environment.h"
@implementation Environment
static Environment *sharedInstance = nil;
@synthesize myApiURL;
- (id)init
{