Skip to content

Instantly share code, notes, and snippets.

View no-longer-on-githu-b's full-sized avatar

no longer on github no-longer-on-githu-b

View GitHub Profile
@codification
codification / proc.clj
Created March 6, 2012 08:10
Clojure asynchronous process
(ns proc
(:import [java.lang ProcessBuilder])
(:use [clojure.java.io :only [reader writer]]))
(defn spawn [& args]
(let [process (-> (ProcessBuilder. args)
(.start))]
{:out (-> process
(.getInputStream)
(reader))
@hodzanassredin
hodzanassredin / Functor.cs
Created September 30, 2011 13:23
Trying to workaround missed higher-kinded type parameters in c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FunctorTest
{
public interface SingleParamPolymorph<T> { }
public interface TwoParamsPolymorph<T, U> { }