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
| - Novas Features do Javascript | |
| - TC39 Stage 3+ | |
| - Bibliotecas e Frameworks | |
| - Frontend | |
| - React (Aplicação de Grande porte) | |
| - Angular 7+ (Aplicação de Grande porte) | |
| - Svelte | |
| - Backend | |
| - Nest/Next | |
| - Sapper |
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
| Observable.Timer(new TimeSpan(0, 0, 1)) | |
| .Do(async _ => await _service.ReserveToCommit(ConsumerIdentification.ConsumerId)) | |
| .SelectMany(async _ => await _service.GetNewItemToCommit(ConsumerIdentification.ConsumerId)) | |
| .Where(guid => guid != Guid.Empty) | |
| .SelectMany(async guid => (userGroup: await _userGroupStagingService.GetWithAllChilds(guid), guid: guid)) | |
| .Where(tuple => tuple.userGroup.Success) | |
| .Subscribe(tuple => | |
| { | |
| // ... do some stuff | |
| }); |
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
| import UserConstants from "../../constants/UserConstants" | |
| function loadedUserType(payload, stateCursor){ | |
| stateCursor.refine(["userTypes"]).data = payload.action.userTypes; | |
| this.emitChange(); | |
| } | |
| const UserActionHandler = { | |
| actions: { | |
| [UserConstants.USERTYPE_LOAD_SUCCESS]: loadedUserType, |
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
| import {createStore, composeStoreActionHandler} from "../StoreFactory"; | |
| import ItemListActionHandler from "./actionHandler/ItemListActionHandler"; | |
| import ItemActionHandler from "./actionHandler/ItemActionHandler"; | |
| import UserActionHandler from "./actionHandler/UserActionHandler"; | |
| const actionHandler = composeStoreActionHandler( | |
| ItemListActionHandler, | |
| ItemActionHandler, | |
| UserActionHandler | |
| ); |
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
| // it's just a function! no createClass or extend React.Component | |
| const Value = function(props){ | |
| render : { | |
| return( | |
| <div className={`${props.span} columns`}> | |
| <label>{props.label}</label> | |
| <input className="u-full-width" type="text" | |
| value={props.value} onChange={()=>{}} disabled/> | |
| </div> | |
| ) |
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
| // our swiss army knife for javascript | |
| var _ = require('lodash'); | |
| // ------------ Helper | |
| // recursive freezing | |
| function deepFreeze(obj) { | |
| // Retrieve the property names defined on obj | |
| var propNames = Object.getOwnPropertyNames(obj); |
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
| function main(){ | |
| var context = document.getElementById('myCanvas').getContext('2d'); | |
| var painter = new Painter(context); | |
| painter.setFillColor(255,0,0,1); | |
| painter.drawText("Text 1", 50); | |
| painter.pushState(); | |
| painter.rotate(320, 100, 45); | |
| painter.setFillColor(0,0,255,1); |
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
| function main(){ | |
| var context = document.getElementById('myCanvas').getContext('2d'); | |
| var painter = new Painter(context); | |
| painter.setFillColor(255,0,0,1); | |
| painter.drawText("Text 1", 50); | |
| painter.pushState(); | |
| painter.rotate(320, 100, 45); | |
| painter.setFillColor(0,0,255,1); |