Skip to content

Instantly share code, notes, and snippets.

View amwaters's full-sized avatar

Aaron Waters amwaters

View GitHub Profile
@amwaters
amwaters / Tests.cs
Created March 27, 2018 01:14
Adds support for running NUnit tests in-app (via NUnitLite)
// Adds support for running NUnit tests in-app (via NUnitLite)
// (c) 2018 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
#!/usr/bin/python
# Build utilities for Python
import os
import re
import shutil
from subprocess import call
import sys
import localmachine
@amwaters
amwaters / Symbol.cs
Last active April 19, 2017 05:26
Symbol class for quick identifier comparison.
// Symbol class for quick identifier comparison.
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
@amwaters
amwaters / TimeExtensions.cs
Last active April 19, 2017 05:26
Helper extensions for System.TimeSpan.
// Helper extensions for System.TimeSpan.
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
@amwaters
amwaters / ICloneableT.cs
Last active April 19, 2017 05:26
Strongly typed Clone interface, with helper functions.
// Strongly typed Clone interface, with helper functions.
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
@amwaters
amwaters / IOExtensions.cs
Last active April 19, 2017 05:27
Helper extensions for System.IO
// Helper extensions for System.IO
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
@amwaters
amwaters / DisposableBase.cs
Last active April 19, 2017 05:27
Base implementation of IDisposable for .NET
// Base implementation of IDisposable for .NET
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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:
@amwaters
amwaters / Debugx.cs
Last active April 19, 2017 05:27
Debugging helpers for .NET and Unity 5
// Debugging helpers for .NET and Unity 5
// (c) 2017 Aaron Waters, All Rights Reserved.
/* This file released under MIT license:
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: