Skip to content

Instantly share code, notes, and snippets.

View carmichaelalonso's full-sized avatar

Cameron Carmichael Alonso carmichaelalonso

View GitHub Profile
@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";
@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 / lottery
Created April 22, 2015 18:16
Generates accurate EuroMillions lottery number
## Lottery guesser
## Proven 99% accuracy
import random
print "This week's EuroMillions number will be..."
print random.randint(10000, 99999)
{% block navbar %}
<div class="navbar navbar-inverse" id="topnav">
<div class="main">
<div class="navbar-header">
<a class="navbar-brand" href="http://www.inmindr.com/"><img src="/static/images/inmindrlarge2.png" alt="Inmindr" height="50px"/> </a>
</div>
<div class="navbar-collapse collapse">
<!--<img src="/static/images/inmindr.png" class="img-responsive" alt="inmindr" width="400px">!-->
<!-- LOGIN-->
<ul class="nav navbar-nav navbar-right">
@carmichaelalonso
carmichaelalonso / sineMaxFinder.py
Created October 4, 2016 09:03
Script that finds positive maxima values for data points representing a sine function.
"""
Script to find the maximum of each wave in a period for a given dataset
Cameron Carmichael Alonso, 2016
"""
import os
def calculateMaxPoints(file, fileName):
@carmichaelalonso
carmichaelalonso / aircraft_ids
Created December 6, 2016 11:18
Infinite Flight Livery/Aircraft ID list for third-party developers (Dec 2016 Update)
81d9ccd4-9c03-493a-811e-8fad3e57bd05:373cc897-32d5-4e3e-84b3-96103d6cac0e:A-10:Generic:A-10:Generic
982dd974-5be7-4369-90c6-bd92863632ba:1d7dff42-46a5-4c47-a46c-bd39ab9cea8d:Airbus A318:Generic:Airbus A318:Generic
982dd974-5be7-4369-90c6-bd92863632ba:291d9656-eb0a-4608-a8dc-268ac031a448:Airbus A318:Infinite Flight (2015):Airbus A318:InfiniteFlight2015
982dd974-5be7-4369-90c6-bd92863632ba:20bcdb6b-854f-44ee-addc-b30fb5acfe05:Airbus A318:ACJ Livery 1:Airbus A318:ACJ_1
982dd974-5be7-4369-90c6-bd92863632ba:3390fa9c-61f7-4c10-97c4-d0f25a526dfd:Airbus A318:ACJ Livery 2:Airbus A318:ACJ_2
982dd974-5be7-4369-90c6-bd92863632ba:b6481163-3cbf-4212-9616-0bf99b6ac3c3:Airbus A318:ACJ Livery 3:Airbus A318:ACJ_3
982dd974-5be7-4369-90c6-bd92863632ba:268bcb25-0236-45e7-bc24-f5dd596381a7:Airbus A318:ACJ Livery 4:Airbus A318:ACJ_4
982dd974-5be7-4369-90c6-bd92863632ba:299d18dd-b248-488f-b6af-c7ef8cd426fd:Airbus A318:Air France:Airbus A318:AirFrance
982dd974-5be7-4369-90c6-bd92863632ba:6cf01d32-3c56-4007-a084-7de26b7dbe52:Airbus A3
AircraftId AircraftName LiveryId LiveryName
2c2f162e-a7d9-4ebd-baf4-859aed36165a Airbus A319 ad8472e4-2881-4160-a188-e382eae4d771 Tunisair
61084cae-8aac-4da4-a7df-396ec6d9c870 Boeing 787-10 635a3906-b726-4625-a020-9eb578c6713b EVA
c1ae3647-f56a-4dc4-9007-cc8b1a2697a5 Boeing 787-8 e992fb45-c10b-4908-8a6f-cb1b3bb56806 Air India
c1ae3647-f56a-4dc4-9007-cc8b1a2697a5 Boeing 787-8 6b3344a7-15a0-4af7-831e-50ee50fbcb41 Xiamen Air
c1ae3647-f56a-4dc4-9007-cc8b1a2697a5 Boeing 787-8 ab1d4246-5e8b-46d4-8911-1ca7e9ac1c33 Infinite Flight (2016)
0c039044-1a57-48db-99c1-7570a6bf2b00 Boeing 787-9 29c954e2-b2c8-4784-85b9-5f8f8d4d215d British Airways
0c039044-1a57-48db-99c1-7570a6bf2b00 Boeing 787-9 ca30b4a7-10fc-4a23-a00e-e56862db9975 KLM
0c039044-1a57-48db-99c1-7570a6bf2b00 Boeing 787-9 e4441cbb-58df-4b4b-b9ef-81a2037d657d United Airlines
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 3390fa9c-61f7-4c10-97c4-d0f25a526dfd ACJ Livery 2
@carmichaelalonso
carmichaelalonso / 18.04.csv
Last active November 26, 2018 19:54
Infinite Flight Aircraft/Livery IDs [18.04]
AircraftId AircraftName LiveryId LiveryName
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 1d7dff42-46a5-4c47-a46c-bd39ab9cea8d Generic
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 291d9656-eb0a-4608-a8dc-268ac031a448 Infinite Flight (2015)
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 20bcdb6b-854f-44ee-addc-b30fb5acfe05 ACJ Livery 1
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 3390fa9c-61f7-4c10-97c4-d0f25a526dfd ACJ Livery 2
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 b6481163-3cbf-4212-9616-0bf99b6ac3c3 ACJ Livery 3
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 268bcb25-0236-45e7-bc24-f5dd596381a7 ACJ Livery 4
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 299d18dd-b248-488f-b6af-c7ef8cd426fd Air France
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 6cf01d32-3c56-4007-a084-7de26b7dbe52 British Airways
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 d848d1bb-21fc-438a-b718-92b20b7f3e74 Avianca
@carmichaelalonso
carmichaelalonso / 18.06.csv
Created December 5, 2018 18:51
Infinite Flight Aircraft/Livery IDs [18.06]
AircraftId AircraftName LiveryId LiveryName
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 1d7dff42-46a5-4c47-a46c-bd39ab9cea8d Generic
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 291d9656-eb0a-4608-a8dc-268ac031a448 Infinite Flight - 2015
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 20bcdb6b-854f-44ee-addc-b30fb5acfe05 ACJ Livery 1
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 3390fa9c-61f7-4c10-97c4-d0f25a526dfd ACJ Livery 2
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 b6481163-3cbf-4212-9616-0bf99b6ac3c3 ACJ Livery 3
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 268bcb25-0236-45e7-bc24-f5dd596381a7 ACJ Livery 4
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 299d18dd-b248-488f-b6af-c7ef8cd426fd Air France
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 6cf01d32-3c56-4007-a084-7de26b7dbe52 British Airways
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318-100 d848d1bb-21fc-438a-b718-92b20b7f3e74 Avianca
@carmichaelalonso
carmichaelalonso / 19.01.csv
Last active March 24, 2019 14:52
Infinite Flight Aircraft/Livery IDs [19.01]
AircraftId AircraftName LiveryId LiveryName
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 20bcdb6b-854f-44ee-addc-b30fb5acfe05 ACJ Livery 1
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 3390fa9c-61f7-4c10-97c4-d0f25a526dfd ACJ Livery 2
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 b6481163-3cbf-4212-9616-0bf99b6ac3c3 ACJ Livery 3
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 268bcb25-0236-45e7-bc24-f5dd596381a7 ACJ Livery 4
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 2AD3F632-B9CA-4510-B12F-3047BE8383EF ACJ Livery 5
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 2ad3f632-b9ca-4510-b12f-3047be8383ef ACJ Livery 5
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 586f115e-af53-4e14-87a4-01691a495828 Airbus Livery (New)
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 867677a9-5b49-4f29-96b9-ff297cc0b22d Airbus Livery (Old)
982dd974-5be7-4369-90c6-bd92863632ba Airbus A318 299d18dd-b248-488f-b6af-c7ef8cd426fd Air France