Skip to content

Instantly share code, notes, and snippets.

View faustobdls's full-sized avatar
🏠
Working from home

Fausto Blanco faustobdls

🏠
Working from home
View GitHub Profile
@faustobdls
faustobdls / display.component.html
Created August 31, 2018 14:54
display user in menu
<ion-header>
<ion-toolbar color="primary" class="header">
<ion-thumbnail class="picture"><img src="https://lh5.googleusercontent.com/-N8HUIRLHmcE/AAAAAAAAAAI/AAAAAAAAAnQ/TTC_nt5UYvw/photo.jpg"></ion-thumbnail>
<ion-title>Fausto Blanco</ion-title>
<ion-label>fausto.level@gmail.com</ion-label>
<ion-button color="secondary" routerLink="/profile">
Editar Perfil
<ion-icon slot="end" name="create"></ion-icon>
</ion-button>
</ion-toolbar>
@faustobdls
faustobdls / oldflix.py
Created April 23, 2019 23:13
Olgflix python integration
import requests
import json
class Gateway:
"""
Oldflix Integration
Christian David <christian@cdavid.eti.br>
"""
{
"useCript": false
}
extension TextExtension on Text {
Text h1({TextStyle style}) {
TextStyle defaultStyle = TextStyle(
fontFamily: 'Nunito_Sans',
fontSize: 36,
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
letterSpacing: -0.02,
color: SoulphiaTheme.defaultGraySwatch[50],
);
import 'package:flutter/material.dart';
class NameInitialsWidget extends StatelessWidget {
final double width;
final double height;
final String text;
final double fontSize;
final double margin;
const NameInitialsWidget(
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/foundation.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@faustobdls
faustobdls / colors.dart
Created January 14, 2021 14:28
Exemplo para ver as cores
void main() {
print('Orange(0xFFEFB52D): ${0xFFEFB52D}');
print('Green(0xFF23C653): ${0xFF23C653}');
}
void main() {
List<String> contatos = ['Fausto Blanco Diniz', 'Juselania Silva', 'Angela Maria', 'Ana', ''];
contatos = contatos.map(
(contato){
String a = contato.split(' ').where((e) => e.isNotEmpty).toList().map(
(c) => c.substring(0,1)
).join('');
// print(a);
if (a.isEmpty || a == '' || a.length == 1) {
return a;
import { Injectable, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { DomController } from '@ionic/angular';
import { environment } from '../../environments/environment';
interface Theme {
name: string;
styles: ThemeStyle[];
}