I hereby claim:
- I am benbals on github.
- I am beb (https://keybase.io/beb) on keybase.
- I have a public key ASAF1WRryvP6q_JLEj7ntv3orw9MY3I6QthkOl_cMnG2YAo
To claim this, I am signing this object:
image: nixos/nix | |
build-latex: | |
stage: build | |
script: | |
- nix-build | |
- cp -Lr result artifacts | |
artifacts: | |
paths: | |
- artifacts |
I hereby claim:
To claim this, I am signing this object:
== Compilation error on file web/controllers/poll_controller.ex == | |
** (CompileError) web/controllers/poll_controller.ex:48: undefined function build/3 | |
(stdlib) lists.erl:1337: :lists.foreach/2 | |
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6 | |
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8 |
public class AMPEL | |
{ | |
int positionX; | |
int positionY; | |
String ampelPhase; | |
LAMPE lampeOben; | |
LAMPE lampeMitte; | |
LAMPE lampeUnten; | |
AMPEL() { |
1. 1 Write a function that takes an Integer
and returns True
or False
depending on whether the number is greater than 12.
1. 2 Write a function that takes an Integer
and returns True
or False
depending on whether it is odd. Look up the %
operator
1. 3 Write a function that takes a name as a String
and returns "Hello, Name!"
. Look up the ++
operator.
greet "Bob" -> "Hello, Bob!"
import Control.Monad | |
powerset :: [a] -> [[a]] | |
powerset = filterM (\n -> [True,False]) |
import qualified Control.Monad as M | |
type KnightPos = (Int,Int) | |
moveKnight :: KnightPos -> [KnightPos] | |
moveKnight (c,r) = do | |
(c',r') <- [(c+2,r-1),(c+2,r+1),(c-2,r-1),(c-2,r+1) | |
,(c+1,r-2),(c+1,r+2),(c-1,r-2),(c-1,r+2) | |
] | |
M.guard (c' `elem` [1..8] && r' `elem` [1..8]) |
-- Ever wanted to add, subtract, multiply and exponentiate using all possible combinations of 1 and 2 with 3 and 4? No. Well thats how it's done in Haskell anyway. Jup just that single line. | |
[(+), (-), (*), (^)] <*> [1,2] <*> [3,4] |
[(0,0,Nothing), | |
(1,0,Nothing), | |
(2,20664,Nothing), | |
(3,537264,[14,13,12]), | |
(4,5372640,[14,13,12]), | |
(5,32029200,[16,15,14]), | |
(6,137725560,[42,41,40]), | |
(7,472709664,[43,42,41])] |
{ | |
"config": { | |
"random": "true" | |
}, | |
"data": [ | |
["Vorderseite 1", "Rückseite 1"], | |
["Vorderseite 2", "Rückseite 2"] | |
] | |
} |