Skip to content

Instantly share code, notes, and snippets.

View carlosmoretti's full-sized avatar
💥

Carlos Alexandre carlosmoretti

💥
  • Softtek
  • Rio de Janeiro
View GitHub Profile
package br.com.bot.pechincha.model;
import br.com.bot.pechincha.model.AgaEightHelper;
public class AgaEightGas {
private static final Double CONST_RGAS = 8.31451 * (Math.pow(10, -3));
private static final Double CONST_TOLD = 0.0D;
private static final Double CONST_TLOW = 0.0D;
const icones = [{
icon: "✊",
beat: "✌️"
}, {
icon: "🖐",
beat: "✊"
}, {
icon: "✌️",
beat: "🖐"
}]
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:location/location.dart';
class MapWidget extends StatefulWidget {
_MapWidget createState() => _MapWidget();
}
.container-authok .logo {
height: 2.5vh !important;
margin-top: 1vh;
width: auto;
}
.container-authok .nav-links {
margin-top: 0px !important;
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class Program
{
<label>Valor 01</label>
<input type="number" [(ngModel)]="valor1"/>
<br />
<label>Valor 02</label>
<input type="number" [(ngModel)]="valor2"/>
<br />
<app-calculadora [valor1]="valor1" [valor2]="valor2"></app-calculadora>
import { Component, OnInit, Input, OnChanges } from '@angular/core';
@Component({
selector: 'app-calculadora',
templateUrl: './calculadora.component.html',
styleUrls: ['./calculadora.component.css']
})
export class CalculadoraComponent implements OnInit, OnChanges {
@Input('valor1') valor1: number;
<label>Valor 01</label>
<input type="number" [(ngModel)]="valor1"/>
<br />
<label>Valor 02</label>
<input type="number" [(ngModel)]="valor2"/>
<br />
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'artigocomponente';
<h1>Carregou este component</h1>