Skip to content

Instantly share code, notes, and snippets.

Avatar
🌎
Working from world

Juliano Silva ojulianos

🌎
Working from world
View GitHub Profile
View Aula-2-Programacao.py
#1. Faça um programa em Python que solicite as três notas tiradas por vocês na disciplina de programação e imprima no console as notas e a média das notas.
def exercicio1():
nota1 = float(input('Digite sua primeira nota:'))
nota2 = float(input('Digite sua segunda nota:'))
nota3 = float(input('Digite sua terceira nota:'))
media = ( nota1 + nota2 + nota3 ) / 3.0
print(("Suas notas são %s, %s, %s e a média é %s") % (nota1, nota2, nota3, media))
@ojulianos
ojulianos / fogefoge.c
Created Feb 19, 2022
Programa Alura C III
View fogefoge.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "pacman.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int acabou() {
View iCalendar.php
<?php
require_once __DIR__ . '/../mail/v5_2/PHPMailerAutoload.php';
/**
* Classe para criar e enviar por email agendamentos
*
* MODO DE USO
* Instacie a classe
* $invite = new InviteICS('email do organizador', 'nome do organizador', 'tipo de evento', 'codigo');
View iCalendar.php
<?php
require_once __DIR__ . '/../mail/v5_2/PHPMailerAutoload.php';
class InviteTest {
protected $code_invite;
protected $curr_date;
protected $event_date_ini;
protected $event_date_fin;
View OSConsulta.php
<?php
/*
* MÉTODO updateData RETORNA A STRING
* UPDATE os SET {$p[0]} WHERE {$p[1]}
* updateData($p[0], $p[1]);
*/
class OSConsulta extends BaseApp
{
View site.html
<!doctype html>
<html class="no-js" lang="{{ shop.locale }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="{{ settings.color_button }}">
{%- if canonical_url != blank -%}
<link rel="canonical" href="{{ canonical_url }}">
View gist:2bcab80a81ac4eb49fb011e680009ab2
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Rede de Vantagens</title>
<meta charset="UTF-8">
<meta name="description" content="Descrição padrão da rede de vantagens">
View lighthouse mybelt
{
"requestedUrl": "https://mybelt.com.br/dashboard/login",
"finalUrl": "https://mybelt.com.br/dashboard/login",
"lighthouseVersion": "5.6.0",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/79.0.3945.120 Safari/537.36",
"fetchTime": "2020-04-06T14:04:07.129Z",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3694.0 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/79.0.3945.120 Safari/537.36",
"benchmarkIndex": 669
View Controle Ultrasonico Arduino.pde
#include <Ultrasonic.h>
#define TRIGGER_PIN 12
#define ECHO_PIN 11
// motor um
int enA = 5;
int in1 = 6;
int in2 = 7;
// motor dois
View Controle Ultrasonico Arduino com Potenciometro.pde
#include <Ultrasonic.h>
#define TRIGGER_PIN 12
#define ECHO_PIN 11
// motor um
int enA = 5;
int in1 = 6;
int in2 = 7;
// motor dois