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
| const promise1 = new Promise((resolve, reject) => { | |
| let value = 1; | |
| setTimeout(() => { | |
| value += 1 // To jest to samo co value = value + 1 | |
| resolve(value) | |
| }, 3000) | |
| }) | |
| promise1.then(result => console.log(result)) // 2 |
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
| class ExampleClass { | |
| name = 'Asd' | |
| constructor() { | |
| this.changeName.bind(this) // Poczytaj o funkcji .bind w skrócie dzięki tej linijce w funkcji changeName w tej klasie pdostawiasz wartość którą chcesz - w tym wypadku context klasy | |
| } | |
| changeName(newName) { | |
| this.name = newName | |
| } |
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
| Technologie użyte do zbudowania serwera dla aplikacji CarRentOffer to Node.js jako freamwork do stworzenia całej logiki serwera w metodologii RestfulAPI, natomiast do baza danych zostanie zbudowana w PostgreSQL ponieważ Postgres jest relacyjną bazą danych co jest niezbędne na przykład do przypisywania poszczególnych modeli aut do różnych wypożyczalni. Praca z Node.js wniesie również to, że backend także opiera się na JavaScript co umożliwia zatrudnienie mniejszej liczby programistów w roli FullStack czyli takich którzy mogą budować zarówna samą aplikacje jak i serwer. |
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
| // DRY - Don't Repeat Yourself | |
| const func = () => { | |
| return { | |
| foo: 'asd', | |
| bar: 'zxc | |
| } | |
| } | |
| // Function definition could be also | |
| const func = () => ({ |
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
| const obj1 = { first_name: 'First Name', email: 'Email', company_id: 'Company ID' } | |
| const obj2 = { firstName: 'John', cid: 123 } | |
| // poprzez wyklikiwanie pól user łączy pole first_name z obj1 z polem firstName z obj2 i docelowo muszę otrzymać obiekt | |
| // wyglądający tak: const obj_result = { first_name: 'firstName' } i teraz przy renderowaniu listy itemów bazując na obj2 w każdym render item po | |
| // Object.keys(obj2) muszę używać _.findKey(mappedFields, (o) => o === fieldKey) co działą tak samo jak Obiect.keys(obj_result).find(key => key === fieldKey) |
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
| https://highsolutions.pl/blog/wpis/tworzac-aplikacje-mobilna-jaka-technologie-wybrac-gdy-jestes-web-developerem | |
| https://developer.mozilla.org/pl/docs/Learn/Server-side/Express_Nodejs/Introduction | |
| https://vavatech.pl/technologie/bazy-danych/postgresql | |
| https://pl.wikipedia.org/wiki/Kanban | |
| https://pl.wikipedia.org/wiki/Git_(oprogramowanie) |
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
| module ArchitectedHello exposing(..) | |
| import Html exposing (..) | |
| import Html.Attributes exposing(style) | |
| import Html.Events exposing (onClick) | |
| import Browser exposing(sandbox) | |
| main = | |
| Browser.sandbox | |
| { init = model |
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
| const EndoValidation = run => | |
| ({ | |
| run, | |
| concat: other => | |
| EndoValidation(x => other.run(x)) | |
| }) | |
| EndoValidation.empty = () => EndoValidation(x => x) | |
| const Arr = x => | |
| ({ |
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
| const { List } = require('../node_modules/immutable-ext') | |
| const Validation = run => | |
| ({ | |
| run, | |
| concat: other => | |
| Validation((key, x) => run(key, x).concat(other.run(key, x))) | |
| }) | |
| const isPresent = Validation((key, x) => |
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
| Wskaźnik P/E: < 20 | |
| Marża netto 12%+ (uzależnione od marzy sektora) | |
| Ilość gotówki w kasie | |
| Poziom zobowiązań | |
| Zobowiązania względem dochodów | |
| Analiza aspektów pranych | |
| Analiza zysków / strat z 5 lat |
NewerOlder