Skip to content

Instantly share code, notes, and snippets.

View kasz's full-sized avatar

Kamil Szymczyk kasz

  • Łódź, Poland
View GitHub Profile
(ns mmu
(:gen-class)
(:use [clojure.contrib duck-streams]))
(defn gc []
(dotimes [_ 4] (System/gc)))
(defn used-memory []
(let [runtime (Runtime/getRuntime)]
(gc)
@rtomayko
rtomayko / Tests Is Wrong
Created January 28, 2009 20:50
Why "require 'rubygems'" In Your Library/App/Tests Is Wrong
In response to all the responses to:
http://twitter.com/rtomayko/status/1155906157
You should never do this in a source file included with your library,
app, or tests:
require 'rubygems'
The system I use to manage my $LOAD_PATH is not your library/app/tests