Skip to content

Instantly share code, notes, and snippets.

View airbreather's full-sized avatar
💭
Wondering why there's a "Set status" button.

Joe Amenta airbreather

💭
Wondering why there's a "Set status" button.
  • Urban Science Applications, Inc.
  • Sterling Heights, Michigan, USA
View GitHub Profile
@airbreather
airbreather / HeapSlaveProgram.cs
Last active January 9, 2016 18:59
A Console application that uses CLR MD to identify the indices of elements in a particular cache that would be eligible for garbage collection if the underlying cache were to only remove the element at that index.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Microsoft.Diagnostics.Runtime;
namespace HeapSlave
{
[15:01:19] [Server thread/ERROR] [FML/]: Caught exception from HardcoreQuesting
java.lang.NoClassDefFoundError: org/lwjgl/input/Keyboard
at hardcorequesting.client.KeyboardHandler.toConfig(KeyboardHandler.java:73) ~[KeyboardHandler.class:?]
at hardcorequesting.client.KeyboardHandler.getDefault(KeyboardHandler.java:94) ~[KeyboardHandler.class:?]
at hardcorequesting.config.ConfigHandler.<clinit>(ConfigHandler.java:41) ~[ConfigHandler.class:?]
at hardcorequesting.HardcoreQuesting.preInit(HardcoreQuesting.java:48) ~[HardcoreQuesting.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
@airbreather
airbreather / hb.bf
Last active September 7, 2015 14:18
++++++++++>++[-<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++.+++++++++++++++..+++++++++.[-]++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++.+++++++++.++.------------.----.---.++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-----.[-]++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++++++++++.++++++.[-]++++++++++.>]<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++.+++++++++++++++..+++++++++.[-]++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++.+++++++++.++.------------.----.---.++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++.----.+++++++++++++++++.[-]++++++++++++++++++++++++++++++++.
@airbreather
airbreather / eieio.cs
Last active August 29, 2015 14:27
Crazy Case Comparisons
using System;
using System.Globalization;
using System.Threading;
namespace ConsoleApplication1
{
internal static class Program
{
private static void Main()
{
using System;
using System.Globalization;
using System.Threading;
namespace ConsoleApplication1
{
internal static class Program
{
private static void Main()
{
using System;
using System.Text;
using System.Threading.Tasks;
using SimpleExpressionEvaluator;
namespace ConsoleApplication1
{
internal static class Program
{
using System;
using System.Collections.Generic;
namespace UrbanScience
{
public struct Int32Set
{
private readonly int[] buckets;
private readonly Slot[] slots;
using System;
namespace ConsoleApplication
{
internal static class Program
{
private static void Main()
{
string nullString = null;
Console.WriteLine(nullString + "hello hello hello");
public sealed class ArrayWrapper<T> : IReadOnlyDictionary<int, T>
{
private readonly T[] arr;
public ArrayWrapper(T[] arr)
{
if (arr == null)
{
throw new ArgumentNullException("arr");
}
using System;
using System.Collections;
using System.Collections.Generic;
using GeoAPI.Geometries;
using NetTopologySuite.Geometries.Utilities;
namespace NetTopologySuite.Algorithm.Locate
{
public class OptimizedIndexedPointInAreaLocator : IPointOnGeometryLocator