This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(fj). | |
-export([parallel/2]). | |
%%%----------------------------------------------------------------------------- | |
%%% @doc Executes the given function on every task in tasks in parallel. | |
%%% @spec parallel(Function, Tasks) -> Results | |
%%% where Results is a list matching the arity of input list Tasks | |
%%% but contains the result of invoking Function on those tasks | |
%%% @end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
python -m SimpleHTTPServer $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mgu.fizzbuzz | |
object Fizzbuzz extends App { | |
def fizzbuzz(n: Int): String = n match { | |
case _ if n % 15 == 0 => "FizzBuzz" | |
case _ if n % 3 == 0 => "Fizz" | |
case _ if n % 5 == 0=> "Buzz" | |
case _ => n.toString | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Option<T> { | |
_value: T; | |
constructor(object: T) { | |
this._value = object; | |
} | |
static empty<T>(): Option<any> { | |
return new Option<T>(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = markus.guenther@gmail.com | |
name = Markus Günther | |
[push] | |
default = matching | |
# Push created tags from the branch to the server as well | |
followTags = true | |
[core] | |
autocrlf = input | |
eol = lf |