Skip to content

Instantly share code, notes, and snippets.

🌐
working to generate impact!

Fábio Schmidt fcschmidt

🌐
working to generate impact!
Block or report user

Report or block fcschmidt

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
View Makefile
# Makefile for start testing
# Used for capture container id: docker ps -aqf "name=example-api"
#
container_name = exampple-api # docker ps for view container name
container_id := $(shell docker ps -aqf "name=$(container_name)")
folder_name = example-api
manage_path = $(folder_name)/django/app/manage.py
app_test = app-example.tests.tests_models
test:
View dojo.py
#!/usr/bin/env python
"""
Caixa Eletrônico
Desenvolva um programa que simule a entrega de notas quando um cliente efetuar um saque em um caixa eletrônico.
Os requisitos básicos são os seguintes:
- Entregar o menor número de notas;
- É possível sacar o valor solicitado com as notas disponíveis;
- Saldo do cliente infinito; Quantidade de notas infinito
- Notas disponíveis:
@fcschmidt
fcschmidt / Makefile
Created May 13, 2019
Makefile Django
View Makefile
.PHONY: test install pep8 clean
DB_NAME=db_name
test:
@echo 'Run coverage and starting tests'
@pytest --verbose --cov=app --color=yes tests/
report:
@echo 'Report coverage and generate html'
View settings.py
"""
Django settings for podosphere project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
View conftest.py
import pytest
from app.app_factory import create_app
from app.ext.db import db as _db
@pytest.fixture(scope='session')
def app():
"""Session wide test 'Flask' application."""
app = create_app('testing')
ctx = app.app_context()
View keybase.md

Keybase proof

I hereby claim:

  • I am fcschmidt on github.
  • I am fcschmidt (https://keybase.io/fcschmidt) on keybase.
  • I have a public key ASCTHvC5ZO3YaJ1dlI4ZasWfLlt-i4HEMg1JqJXx-cEMKAo

To claim this, I am signing this object:

View app.module.ts
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { NotificationsPage } from './../pages/notifications/notifications';
import { HistoryPage } from './../pages/history/history';
import { HomePage } from './../pages/home/home';
import { RegistrationPage } from './../pages/registration/registration';
import { LoginPage } from './../pages/login/login';
View rest-api.ts
import { HttpClient, HttpHeaders, HttpHeaderResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
// import { Observable } from 'rxjs/Observable';
// import { resolveDefinition } from '@angular/core/src/view/util';
import 'rxjs/add/operator/map';
/*
Generated class for the RestApiProvider provider.
See https://angular.io/guide/dependency-injection for more info on providers
View categoria_jogador.py
#!/usr/bin/env python
def calcula_idade(d):
for r in range(0, len(d)):
ano = d[r]['data'][2]
idade = 2018 - ano
d[r]['data'] = idade
d[r]['categoria'] = ''
if idade <= 16:
You can’t perform that action at this time.