Skip to content

Instantly share code, notes, and snippets.

View jlouis's full-sized avatar

Jesper Louis Andersen jlouis

View GitHub Profile
-module(foo).
-export([test/0,
-module(foo).
-export([test/0,
export_me/1]).
export_me(_N) ->
nono.
test() ->
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
foo
bar
baz
Eshell V5.9 (abort with ^G)
1> erlang:module_loaded(foo).
false
2> l(foo).
{module,foo}
3> erlang:module_loaded(foo).
true
4>
kroner gender
375 K
154 M
142 M
413 K
154 M
154 M
154 M
638 K
188 M
@jlouis
jlouis / gist:2018354
Created March 11, 2012 22:01
EQC error in jobs
Shrinking......(6 times)
{call,jobs_eqc_queue,timedout_obs,
[jobs_queue,
{call,jobs_eqc_queue,in,
[jobs_queue,
{#Ref<0.0.0.44463>,#Ref<0.0.0.44464>},
{call,jobs_eqc_queue,advance_time,
[{call,jobs_eqc_queue,advance_time,
[{call,jobs_eqc_queue,in,
[jobs_queue,
plt:
$(DIALYZER) --build_plt --output_plt .qlglicko.plt \
-pa deps/*/ebin \
deps/*/ebin \
--apps kernel stdlib sasl inets crypto \
public_key ssl runtime_tools erts \
compiler tools syntax_tools hipe webtool
analyze: compile
$(DIALYZER) --no_check_plt \
@jlouis
jlouis / annealing.erl
Created April 23, 2012 20:05
Initial non-working simulated annealer :)
-module(annealing).
-export([anneal/1]).
-define(KMAX, 1000).
-define(EMAX, 0.00001).
-define(INITIAL_TEMP, 100000).
anneal(S0) ->
sfmt:seed(os:timestamp()),
@jlouis
jlouis / annealing.erl
Created April 25, 2012 18:46
Anneal y = (X + 4)(X + 1)(X -2) / 4 :)
-module(annealing).
-export([anneal/1]).
-define(KMAX, 10000).
-define(EMAX, 0.00001).
-define(INITIAL_TEMP, 100000).
anneal(S0) ->
random:seed(os:timestamp()),
@jlouis
jlouis / iopattern.ksh
Created April 27, 2012 14:30 — forked from krestenkrab/iopattern.ksh
iopattern - print disk I/O pattern.
#!/usr/bin/ksh
#
# iopattern - print disk I/O pattern.
# Written using DTrace (Solaris 10 3/05).
#
# This prints details on the I/O access pattern for the disks, such as
# percentage of events that were of a random or sequential nature.
# By default totals for all disks are printed.
#
# $Id: iopattern 65 2007-10-04 11:09:40Z brendan $