Skip to content

Instantly share code, notes, and snippets.

@lachlanhurst
lachlanhurst / build-gdal-combined-lib.sh
Last active May 14, 2021 — forked from JesseCrocker/build-gdal-combined-lib.sh
Script for building GDAL for iOS and the iOS simulators
View build-gdal-combined-lib.sh
#!/bin/bash
PREFIX=`pwd`/install/
rm -rf $PREFIX
mkdir $PREFIX
LOG=./log
rm -rf $LOG
mkdir $LOG
if [ -e ${PREFIX} ]
then
@lachlanhurst
lachlanhurst / Simplify.swift
Created Feb 13, 2015
Simplification of a 3D polyline using the Ramer–Douglas–Peucker algorithm in Swift
View Simplify.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 / BikeNode.swift
Created May 26, 2017
Poorly written extract of source code used to create SceneKit 'bike dude'. Video here https://www.youtube.com/watch?v=UYwLltzNu_w
View BikeNode.swift
//
// 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 / GameViewController.h
Created Mar 10, 2017
Pulse effect in SceneKit - Objective C
View GameViewController.h
//
// 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 / SwiftEdgeExtraction.swift
Created Nov 1, 2015
Swift playground for identifying the edge around a 2D array of boolean values
View SwiftEdgeExtraction.swift
// 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:
View TerrainMesh.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lachlanhurst
lachlanhurst / simplified_ride.geojson
Created Feb 13, 2015
Simplified vs source GPS data
View simplified_ride.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.