Skip to content

Instantly share code, notes, and snippets.

@lachlanhurst
lachlanhurst / simplified_ride.geojson
Created February 13, 2015 06:32
Simplified vs source GPS data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lachlanhurst
lachlanhurst / SwiftEdgeExtraction.swift
Created November 1, 2015 09:26
Swift playground for identifying the edge around a 2D array of boolean values
// The MIT License (MIT)
// Copyright (c) 2015 Lachlan Hurst
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@lachlanhurst
lachlanhurst / GameViewController.h
Created March 10, 2017 08:11
Pulse effect in SceneKit - Objective C
//
// GameViewController.h
// pulseeffectobjectivec
//
// Created by Lachlan Hurst on 10/3/17.
// Copyright © 2017 Lachlan Hurst. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <SceneKit/SceneKit.h>
@lachlanhurst
lachlanhurst / BikeNode.swift
Created May 26, 2017 05:04
Poorly written extract of source code used to create SceneKit 'bike dude'. Video here https://www.youtube.com/watch?v=UYwLltzNu_w
//
// MIT License
// Copyright (c) 2017 Lachlan Hurst
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@lachlanhurst
lachlanhurst / Simplify.swift
Created February 13, 2015 08:22
Simplification of a 3D polyline using the Ramer–Douglas–Peucker algorithm in Swift
//
// Simplify.swift
//
// Simplification of a 3D-polyline.
// A port of https://github.com/hgoebl/simplify-java for Swift
//
//
// The MIT License (MIT)
//
// Created by Lachlan Hurst on 10/02/2015.
@lachlanhurst
lachlanhurst / build-gdal-combined-lib.sh
Last active May 14, 2021 02:25
Script for building GDAL for iOS and the iOS simulators
#!/bin/bash
PREFIX=`pwd`/install/
rm -rf $PREFIX
mkdir $PREFIX
LOG=./log
rm -rf $LOG
mkdir $LOG
if [ -e ${PREFIX} ]
then