Skip to content

Instantly share code, notes, and snippets.

@RichyHBM
RichyHBM / future.go
Last active August 21, 2016 15:38
Simple goroutines wrapper to provide Scala-like futures functionality in Golang. Adapted from: http://labs.strava.com/blog/futures-in-golang/
package main
import (
"errors"
"time"
)
type FutureFunction func() (interface{}, error)
type FutureResult func(timeout ...time.Duration) (interface{}, error)
@RichyHBM
RichyHBM / Bar.scala
Last active August 29, 2018 23:10
Avian executable with Scala example
//In subdirectory src/Foo
package Foo
object Bar {
val str = "Hello, world!"
}
@RichyHBM
RichyHBM / RebuildDll.cs
Last active August 29, 2015 14:27
Unity3d custom window to allow compilation and replacement of custom DLL code
#if UNITY_EDITOR
using System;
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Diagnostics;
using UnityEditor;
public class RebuildDll : EditorWindow