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
| .run ($location, $rootScope) -> | |
| $rootScope.isActive = (path) -> | |
| $location.path().replace(/\?.*/,"") == path |
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 |