Skip to content

Instantly share code, notes, and snippets.

View carmichaelalonso's full-sized avatar

Cameron Carmichael Alonso carmichaelalonso

View GitHub Profile
@carmichaelalonso
carmichaelalonso / WhirlyTessmonoRemover.sh
Created March 22, 2015 09:28
Shell script for removing tessmono.o from WhirlyGlobeMaply. Caused duplicate symbol because of identical file included in GoogleMaps framework, hence removal from WhirlyGlobeMaply.
#!/bin/bash
cd WhirlyGlobeMaplyComponent.framework
lipo Versions/Current/libWhirlyGlobeMaplyComponent.a -thin armv7 -output Whirly.armv7
lipo Versions/Current/libWhirlyGlobeMaplyComponent.a -thin i386 -output Whirly.i386
xcrun -sdk iphoneos lipo Versions/A/libWhirlyGlobeMaplyComponent.a -thin armv7s -output Whirly.armv7s
xcrun -sdk iphoneos lipo Versions/A/libWhirlyGlobeMaplyComponent.a -thin arm64 -output Whirly.arm64
ar -d -sv Whirly.armv7 tessmono.o
ar -d -sv Whirly.armv7s tessmono.o
@carmichaelalonso
carmichaelalonso / WhitespaceAdder.cs
Created February 23, 2015 21:23
Adding a whitespace at every 5th char
using System;
using System.Text;
namespace Sample {
public class SampleClass {
public static void AddWhitespace () {
var InputString = "Liket hisln eedhe lpwit his";