Skip to content

Instantly share code, notes, and snippets.

@gutomarzagao
gutomarzagao / Author.js
Created October 23, 2022 21:16
7 erros de clean code
import db from '@/db'
class Author {
constructor(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
this.fullName = firstName + ' ' + lastName
}
update(firstName, lastName) {
@gutomarzagao
gutomarzagao / Base.js
Last active April 22, 2024 12:36
Payment Analyzer
class Base {
CONSECUTIVE_PAYMENTS = 3
ALLOWED_PAYMENTS_MEAN_DIFF_PERCENTEGE = 8
PAY_CYCLE = 31
constructor(loan) {
this.loan = loan
}
paymentsData() {
@gutomarzagao
gutomarzagao / App.js
Last active March 24, 2018 18:40
React Native bug
import React, { Component } from 'react';
import {
View,
StyleSheet,
Image,
} from 'react-native';
const styles = StyleSheet.create({
root: {
flex: 1,
Application Privacy Statement
This privacy statement (“Privacy Statement”) applies to the treatment of personally identifiable information submitted by, or otherwise obtained from, you in connection with the associated application (“Application”). The Application is provided by OneClick (and may be provided by OneClick on behalf of a OneClick licensor or partner (“Application Partner”). By using or otherwise accessing the Application, you acknowledge that you accept the practices and policies outlined in this Privacy Statement.
WHAT PERSONAL INFORMATION DOES OneClick COLLECT?
We collect the following types of information from our users:
Personal Information You Provide to Us:
We may receive and store any information you submit to the Application (or otherwise authorize us to obtain – such as, from (for example) your Facebook account). The types of personal information collected may include your full name, email address, gender, IP address, browser information, username, demographic information, and an
comando = ""
saldo=[0]
while (True):
comando = input("Digite um comando:")
print(comando)
if(comando=="deposito"):
depositar=int(input("Valor do depósito:"))
if(depositar<0):
print("nao aceitamos depositos negativos")
@gutomarzagao
gutomarzagao / vunits.js
Created January 20, 2014 07:08
Polyfill for vw, vh, vm units. It calcutes the values in px and apply automatically to your css. Credit for Lea Verou (https://gist.github.com/LeaVerou) and Xandor Schiefer (https://gist.github.com/zeorin)
/**
* Polyfill for the vw, vh, vm units Requires StyleFix from -prefix-free
* http://leaverou.github.com/prefixfree/
*
* @author Lea Verou
*
* Contributor: Xandor Schiefer
* Contributor: Guto Marrara Marzagão
*
*/