This file contains hidden or 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
selectMaps($()).map { elem => | |
elem.map { jsValue => | |
jsValue.validate[Level].get | |
}: List[Level] | |
}.collect { | |
case (list: List[Level]) => Ok(views.html.levelChooser(list)) | |
} | |
(for ( elem <- selectMaps($()) | |
jsValue <- elem |
This file contains hidden or 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
var lightsControls = { | |
red: { | |
value: 0, | |
name: "R", | |
color: "#FF0000", | |
min: 0, | |
max: 255 | |
}, | |
green: { | |
value: 0, |
This file contains hidden or 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
Witam serdecznie, | |
Dziękuję bardzo za piątkowe spotkanie i propozycję współpracy ze strony Pana i pańskich kolegów. | |
W pierwszej kolejności chciałbym Panów zaprosić na kilkugodzinny kurs pierwszej pomocy z elementami ratownictwa drogowego, który będzie zorganizowany specjalnie dla Was. Jeśli chodzi o termin, bardzo proszę o podanie wygodnej dla Was daty, a ja postaram się tak to zorganizować, aby było dobrze :) | |
Jeśli chodzi o aplikację, chcielibyśmy jak najszybciej uruchomić wersję beta - przeznaczoną głównie do pokazów oraz testowania w zakresie przepływu informacji o zdarzeniach. | |
Tak więc zależałoby nam na stworzeniu: | |
1. prostego formularza który wypełniałby dyspozytor (dostęp najlepiej przez WWW po wprowadzeniu loginu i hasła); byłoby super, gdyby udało się zrobić również archiwum zdarzeń. | |
2. mechanizmu przekazującego informację z formularza do aplikacji |
This file contains hidden or 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
// Tu standard | |
function Person(name, age){ | |
this.name = name | |
this.age = age | |
} | |
// Literał jest szybszy niż new Array() i lepiej wygląda | |
var family = [ | |
new Person("alice", 40) | |
new Person("bob", 40) |
This file contains hidden or 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
plik.txt: | |
en hello bye | |
pl witam dowidzenia | |
de guttenmorgen tschus | |
I13n.ex: | |
defmacro lang(a) do | |
File,stream "plik.txt" |
This file contains hidden or 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
List<Integer> list = List.range(0, 10) | |
.map( a -> a * 2) | |
.map( a -> a + 10) | |
.map( a -> null) | |
.map( a -> 10); |
This file contains hidden or 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
wende jak importować stdlib... | |
wende jak zdefiniować main(boolean arg) | |
arg? | |
wende jak wypisać na ekran "Hello world"... | |
a inaczej? | |
return ... | |
ok... | |
... |
This file contains hidden or 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
def filter [head | tail], pred do | |
if pred.(head) do [head | filter tail, pred] | |
else filter tail, pred | |
end | |
def filter [], _ do: [] |
This file contains hidden or 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
replaceTypes = fn replaceType -> | |
fn | |
[{type, line, name, args} | types], typesMap -> | |
case typesMap[name] do | |
nil -> [{type, line, name, replaceType.(args,typesMap)} | replaceType.(types,typesMap)] | |
type -> [type | replaceType.(types,typesMap)] | |
end | |
[type | types], typesMap -> [type | replaceType.(types, typesMap)] | |
[], _ -> [] | |
end |
This file contains hidden or 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
y = fn f -> | |
fn x -> | |
f.(fn y -> (x.(x)).(y) end) | |
end.(fn x -> | |
f.(fn y -> (x.(x)).(y) end) | |
end) | |
end |