Skip to content

Instantly share code, notes, and snippets.

View rgregg's full-sized avatar

Ryan Gregg rgregg

  • Microsoft
  • Seattle, WA
View GitHub Profile
@rgregg
rgregg / FormMicrosoftAccountAuth.cs
Last active September 27, 2021 23:59
Easy OAuth form for Microsoft Account authentication
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
@rgregg
rgregg / gist:5cf07a3f1cbfa8dc6cdf
Created May 24, 2014 22:29
Retain/Release Debugging
- (id) retain
{
NSLog(@"%@ retain: count: %d + 1", self, [self retainCount]);
return [super retain];
}
- (void) release
{
NSLog(@"%@ release: count: %d - 1", self, [self retainCount]);
[super release];