Skip to content

Instantly share code, notes, and snippets.

@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:
//
// 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 / 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];
@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

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