Skip to content

Instantly share code, notes, and snippets.

View JCFACHINI's full-sized avatar

JC Fachini JCFACHINI

View GitHub Profile
@JCFACHINI
JCFACHINI / gist:b1ef42e64b862ea8c2100fb96c1da18d
Created February 4, 2023 17:56
MentoriaJCFachini_ExercicioEstruturasSelecao
9:-) Faça um algoritmo que receba a idade de uma pessoa em anos, calcule e exiba essa idade em:
• Meses;
• Dias;
• Horas;
• Minutos.
Inicio
idadeEmAnos = Leia(IdadeEmAnos);
idadeEmMeses = idadeEmAnos * 12; //10 * 12 = 120 meses
2:-) Dados dois números inteiros e distintos (ENTRADA), construa um algoritmo que seja capaz de definir qual é o
maior elemento.
Entrada / Processamento / Saída
Início
Ler(N1);
Ler(N2);
SE (N1 > N2)
Exibir(N1 "é o maior");
@JCFACHINI
JCFACHINI / exercicio1_lista1
Created January 30, 2023 15:11
Exemplo Código Mentoria
1:-) Faça um algoritmo que receba três notas de um aluno, calcule a média aritmética entre as três
notas e exiba mensagem de ’Aprovado’ ou ’Reprovado’, considerando a média de aprovação maior
ou igual a 7,0.
//Entrada
//Processamento
//Saída
Início
Ler(N1);
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
var
real na,nb,nc,media;
#subRotina
inicio
var inteiro x,y ;
letra z[10] ;
y recebas 5;
syntax on
set number
set shiftwidth=4
set softtabstop=4
set expandtab
set laststatus=2
set autoindent
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
@JCFACHINI
JCFACHINI / Update remote repo
Created March 1, 2020 14:02 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
<?php
class Customer {
private $name;
public function setName(string $name) {
$this->name = $name;
}
public function getName(): string {
<?php
class ZendEntityMapperQueue extends SImQueueInterface
{
public function __construct(ZendEntityMapperQueueOptions $options, $name, JobPluginManager $jobPluginManager)
{
$this->queueOptions = $options;
$this->name = $name;
parent::__construct($name, $jobPluginManager);
@JCFACHINI
JCFACHINI / .vimrc
Last active August 29, 2015 14:22 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15