Skip to content

Instantly share code, notes, and snippets.

View gustavoalvesdev's full-sized avatar
👨‍🏫
Studying

Gustavo Alves da Silva gustavoalvesdev

👨‍🏫
Studying
View GitHub Profile
@gustavoalvesdev
gustavoalvesdev / Poly.php
Created August 6, 2022 19:01
Exemplo de como usar method overloading no PHP
<?php
class Poly {
public function __call($name, $arg) {
if ($name == 'test') {
switch(count($arg)) {
case 0:
return 'Test without argument';
@gustavoalvesdev
gustavoalvesdev / Cliente.php
Created April 7, 2021 17:09
Exemplo de Padrão Singleton (PHP)
<?php
declare(strict_types=1);
class Cliente
{
private string $nome;
private string $telefone;
/*
@gustavoalvesdev
gustavoalvesdev / PY0101EN-1-2-Strings.ipynb
Created February 20, 2020 21:30
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gustavoalvesdev
gustavoalvesdev / 1.3_notebook_quizz_String_Operations.ipynb
Created February 20, 2020 21:10
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gustavoalvesdev
gustavoalvesdev / PY0101EN-1-1-Types.ipynb
Created February 20, 2020 20:55
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.