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
| type Size = 1 | 2 | 3; | |
| const GetSize = (): Size => { | |
| const result: number = parseInt(Math.random() * 20); | |
| if (result > 3) { | |
| return 3; | |
| } | |
| return result; | |
| }; |
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 React from "react"; | |
| import { withRouter } from "react-router"; | |
| class Test extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| }; | |
| } | |
| componentWillReceiveProps(nextProps) { |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace Echk.Web.Mvc | |
| { | |
| /// <summary> | |
| /// ale's approach | |
| /// </summary> |
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
| .service('AdminPlantsDevicesCtrlInit', [ | |
| // Dependencias | |
| '$q', | |
| '$route', | |
| 'Plant', | |
| 'Notify', | |
| function($q, $route, Plant, Notify) { | |
| return { | |
| prepare: function() { | |
| var |
NewerOlder