Skip to content

Instantly share code, notes, and snippets.

@mariusae
mariusae / nobiz
Last active December 15, 2015 21:49
A script, using GNU diction, to highlight business speak. From the Bizspeak blacklist: http://blogs.hbr.org/cs/2013/03/a_bizspeak_blacklist.html
#!/bin/sh
exec diction -f "$0" -n "$@"
!#
actionable biz (apart from legal action)
agreeance biz
as per biz
at the end of the day biz
back of the envelope biz
bandwidth (outside electronics)
bring our A game biz
Commercial Users of Functional Programming (CUFP) 2013
ICFP 2013; Boston, MA, Sep 22-24.
Proposals due June 29.
The annual CUFP workshop is a place where people can see how others are using functional programming to solve real world problems; where practitioners meet and collaborate; where language designers and users can share ideas about the future of their favorite language; and where one can learn practical techniques and approaches for putting functional programming to work.
Giving a talk
If you have experience using functional languages in a practical setting, we invite you to submit a proposal to give a talk at the workshop. We are looking for both experience reports and in-depth technical talks.
Hello
Good Morning and i will like to make an order of Nylon.
Size:333 mm
Yield:58
Tensile:2650
import scala.util.Random
class Kalman(N: Int) {
private[this] val mbuf = new Array[Double](N)
private[this] val ebuf = new Array[Double](N)
private[this] var estimate: Double = _
private[this] var n = 0L
private[this] var weight: Double = 0.9
import scala.util.Random
class Kalman(N: Int) {
private[this] val mbuf = new Array[Double](N)
private[this] val ebuf = new Array[Double](N)
private[this] var estimate: Double = _
private[this] var n = 0L
private[this] var weight: Double = 0.9
Concurrent Programming with Futures
===================================
A *Future* is a placeholder for the result of an asynchronous
operation. Examples of such operations are:
- an RPC to a remote host
- a long computation in another thread
- reading from disk
@mariusae
mariusae / letterpress.ml
Created November 4, 2012 21:36
Letterpress solver
(* ocamlbuild letterpress.native *)
let rec mkword ?(i=0) ?(l=[]) w =
if i = (String.length w) then
let l' = List.map Char.lowercase l in
List.fast_sort Char.compare l'
else
mkword ~i:(i+1) ~l:(w.[i]::l) w
let rec contains b w = match (b,w) with
vox=; k ssh
/bin/kill 2483 # marius 2483 Sun10PM 0:00 616K Sleep /usr/bin/ssh-agent -l
/bin/kill 12682 # marius 12682 1:53PM 0:00 1948K Sleep ssh monkey.org
vox=; /bin/kill 12682 # marius 12682 1:53PM 0:00 1948K Sleep ssh monkey.org
vox=;
@mariusae
mariusae / gist:2926830
Created June 13, 2012 22:18
Current status.
class Deepstack {
def apply() = a()
def a() = b()
def b() = c()
def c() = d()
def d() = e()
def e() = f()
def f() = g()
def g() = h()
def h() = j()
@mariusae
mariusae / gist:2159505
Created March 22, 2012 16:43
Robot dinosaurs
Subject: Robot dinosaurs for your museum
Dear Manager
Very nice to know that you are working for the dinosaurs museum
We supply many products like : | Alive looking dinosaurs | Robotic
wild animals model | Children slide | Fiberglass cartoon | Pirate
model | ..etc...for European and USA clients over 5years