Skip to content

Instantly share code, notes, and snippets.

//
// NSString-Levenshtein.m
// https://web.archive.org/web/20031221230916/http://www.merriampark.com:80/ldobjc.htm
// Created by Rick Bourner on Sat Aug 09 2003.
// [email protected]
@implementation NSString(Levenshtein)
// calculate the distance between two string treating them eash as a
@Coeur
Coeur / README.md
Last active October 18, 2020 21:41 — forked from lopezjurip/README.md
Write to NTFS on OSX Yosemite and El Capitan
@Coeur
Coeur / TypeSwitch.cs
Last active August 29, 2015 14:01 — forked from Virtlink/TypeSwitch.cs
using System;
namespace Virtlink
{
/// <summary>
/// Executes a particular piece of code based on the type of the argument.
/// </summary>
/// <example>
/// Usage example:
/// <code>
@Coeur
Coeur / ARCHelper.h
Created October 11, 2012 08:03 — forked from nicklockwood/ARCHelper.h
ARC Helper
//
// ARC Helper
//
// Version 2.1
//
// Created by Nick Lockwood on 05/01/2012.
// Copyright 2012 Charcoal Design
//
// Distributed under the permissive zlib license
// Get the latest version from here:
@Coeur
Coeur / Get iOS MAC address.m
Created November 30, 2011 17:11
Get iOS MAC address #
/* Original source code courtesy John from iOSDeveloperTips.com */
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_dl.h>
+ (NSString *)getMacAddress
{
int mgmtInfoBase[6];