Skip to content

Instantly share code, notes, and snippets.

Antoine Cœur Coeur

  • Apple
  • Shanghai
Block or report user

Report or block Coeur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View NSString-Levenshtein.m
//
// 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.
// Rick@Bourner.com
@implementation NSString(Levenshtein)
// calculate the distance between two string treating them eash as a
@Coeur
Coeur / README.md
Last active Jan 16, 2019 — forked from lopezjurip/README.md
Write to NTFS on OSX Yosemite and El Capitan
View README.md

Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
View 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>
View ARCHelper.h
//
// 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 Nov 30, 2011
Get iOS MAC address #
View Get iOS MAC address.m
/* 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];
You can’t perform that action at this time.