Skip to content

Instantly share code, notes, and snippets.

🦄

Diego Santos Seabra Dssdiego

🦄
Block or report user

Report or block Dssdiego

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Dssdiego
Dssdiego / .gitignore
Last active Sep 10, 2019
Android Gitignore
View .gitignore
#built application files
*.apk
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
View alert.service.ts
import { Injectable } from '@angular/core';
import { MatDialog,MatSnackBar } from '@angular/material';
@Injectable()
export class AlertService {
constructor(
private snackBar: MatSnackBar
) { }
View chamaPopup.component.ts
openPopUp(data: any = {}, isNew?) {
this.isPopupOpened = true;
let title = isNew ? 'Adicionar Item' : 'Editar Item';
let dialogRef: MatDialogRef<any> = this.dialog.open(PopUpComponent, {
width: '1024px',
disableClose: true,
data: { title: title, payload: data, editMode: !isNew }
})
dialogRef.afterClosed().subscribe(res => {
this.getItems();
View alert.component.html
<div class="text-center">
<img class="mb-05" src="{{ image }}" alt=""/>
<h6 class="m-0 pb-1">{{ title }}</h6>
</div>
View toast.ts
import { Component, OnInit } from '@angular/core';
import { MatSnackBar } from '@angular/material';
@Component({
selector: 'app-toast',
templateUrl: './toast.component.html',
styleUrls: ['./toast.component.scss']
})
export class Toast implements OnInit {
View card.html
<div fxLayout="row wrap">
<div fxFlex="100" fxFlex.gt-sm="25" fxFlex.sm="50">
<mat-card>
<mat-card-title>
<small class="text-muted">Despesas Fixas</small>
<span fxFlex></span>
<mat-chip class="icon-chip" color="accent" selected="true">
<mat-icon>trending_up</mat-icon>10%
</mat-chip>
</mat-card-title>
View datatable.html
<ngx-datatable #table class="material ml-0 mr-0 mb-5" [rows]="rows" [columnMode]="'flex'" [headerHeight]="50" [footerHeight]="50"
[limit]="10" [rowHeight]="'auto'" [sorts]="[{prop: 'name', dir: 'desc'}]" [loadingIndicator]="loadingIndicator">
<ngx-datatable-column name="Avatar" prop="avatar" [flexGrow]="0.5">
<ng-template ngx-datatable-cell-template let-rowIndex="rowIndex" let-row="row">
<img src="{{row?.avatar}}" alt="" class="avatar-img">
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column name="Nome" prop="name" [flexGrow]="2">
<ng-template ngx-datatable-cell-template let-rowIndex="rowIndex" let-row="row">
{{ row?.name }}
View fab.html
<div id="app-fab">
<div class="handle">
<button mat-fab color="primary" (click)="fabClick()">
<mat-icon>person_add</mat-icon>
</button>
</div>
</div>
View people_data_prediction.csv
Weight (Kg) Height (cm) Result Conclusion Correct Prediction?
94 182 -0.00157233 Male Yes
56 172 0.69436113 Female No
98 187 -0.07898268 Male Yes
65 172 0.59412349 Female Yes
87 175 0.02263017 Male Yes
50 160 0.80293757 Female Yes
View people_data_predict_sex.csv
Height (cm) Weight (kg) Sex (m/f)
172 62 Male
187 98 Male
153 70 Female
183 90 Male
173 68 Female
173 53 Female
176 52 Female
173 56 Female
160 50 Female
You can’t perform that action at this time.