Skip to content

Instantly share code, notes, and snippets.

@nickfrey
nickfrey / WFSimulate3DTouchPreview.m
Created September 22, 2015 20:13
Test 3D Touch peek/pop using private APIs
@interface UIPreviewForceInteractionProgress : NSObject
- (void)endInteraction:(BOOL)arg1;
@end
@interface UIPreviewInteractionController : NSObject
@property (nonatomic, readonly) UIPreviewForceInteractionProgress *interactionProgressForPresentation;
@JoeRobich
JoeRobich / CsGuard.cs
Created March 13, 2014 14:03
Port of AsGuard to C#.
using System;
using System.Collections.Generic;
namespace TheDevStop.CsGuard
{
public class Contracts
{
public enum Kind
{
PreCondition,
@JoeRobich
JoeRobich / Program.cs
Created February 4, 2013 22:40
Developer interview problem
void Main()
{
var unsortedNames = GetNames();
var sortedNames = SortNames(unsortedNames);
PrintArray(sortedNames);
}
// Formats and sorts an array of name strings.
// Input: An unordered array of strings in the format '{LastName}, {FirstName}'
// Output: An ordered array of strings in the format '{FirstName} {LastName}'