- Introdução
- Variaveis
- Operadores Matematicos
- Operadores Lógicos
- Funções
- Condicionais
- Estruturas de repetição
- DOM
This file contains 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.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using Telerik.WinControls; | |
using MySql.Data.MySqlClient; | |
using System.Configuration; |
This file contains 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
package exerciciosingleton; | |
import javax.swing.*; | |
public final class Singleton { | |
private static Singleton singleton; | |
public Singleton(){ | |
JOptionPane.showMessageDialog(null, "Objeto criado"); | |
} |
This file contains 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 { Component, ViewContainerRef } from '@angular/core'; | |
import { ToastsManager } from 'ng2-toastr/ng2-toastr'; | |
@Component({ | |
selector: 'my-app', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
constructor(public toastr: ToastsManager, vcr: ViewContainerRef) { |
This file contains 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 Produto { | |
codigo : string; | |
descricao : string; | |
preco : number; | |
constructor(_codigo : string, _descricao : string, _preco : number) { | |
this.codigo = _codigo; | |
this.descricao = _descricao; | |
this.preco = _preco; | |
} |
This file contains 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
angular.module('meuApp').controller('userCtrl', function ({blabla..}, userService) { | |
{...} | |
//Exemplo | |
userService.List().then(function (result) { | |
vm.list = result; | |
}); |
This file contains 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
'use strict' | |
class XstTableCtrl { | |
static get ERROR_MSG() { return 'Error on get data' } | |
static get ROW_HEIGHT() { return 48 } | |
static get $inject() { | |
return ['$element', 'Restangular', '$mdToast', '$translate'] | |
} |
This file contains 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
<Text>itemId: {JSON.stringify(itemId)}</Text> | |
<Text> | |
{this.state.data} | |
</Text> | |
<Text> | |
Latitude : | |
</Text> | |
<Text> |
This file contains 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 gulp = require("gulp") | |
const concat = require('gulp-concat') | |
const watch = require('gulp-watch') | |
const embedTemplates = require('gulp-angular-embed-templates') | |
const concatCss = require('gulp-concat-css') | |
const del = require('del') | |
const runSequence = require('run-sequence') | |
const terser = require('gulp-terser') | |
const _distFolder = './dist' |
This file contains 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 { Injectable } from '@angular/core'; | |
import { environment } from '../../environments/environment'; | |
import { HttpClient } from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
import { Lembrete } from '../interfaces/lembrete'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class LembreteService { |
OlderNewer