Skip to content

Instantly share code, notes, and snippets.

View pdr-tuche's full-sized avatar
:octocat:
little media, lots of code ❌🧢

Pedro Neves pdr-tuche

:octocat:
little media, lots of code ❌🧢
View GitHub Profile
git status
git diff
git add README.md
git status
git commit
git config --global user.email "seuemail@gmail.com"
git config --global user.name "usernameGithub"
git commit
git log
git push origin master
@pdr-tuche
pdr-tuche / flood.py
Last active July 23, 2022 21:27
flood
import pyautogui as auto
from time import sleep
contador =0
while contador < 100:
auto.write('te amo <3') #aqui voce coloca o texto a ser enviado
auto.press('enter')
sleep(0.4)
contador+=1
@pdr-tuche
pdr-tuche / diaPyscript.html
Last active June 30, 2022 21:08
Renderização de relógio na web utilizando pyscript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> -->
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<title>Document</title>
</head>
@pdr-tuche
pdr-tuche / CPP.ps1
Last active May 17, 2023 14:30
compilar cpp via terminal
g++ arquivo.cpp -o nomeDoExec -Wall
g++ -o NOME_DO_EXECUTAVEL nomeDoArquivo.cpp
gcc -o NOME_DO_EXECUTAVEL nomeDoArquivo.cpp
@pdr-tuche
pdr-tuche / main.dart
Created October 9, 2022 22:21
primeiro codigo flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main(){
runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(
@pdr-tuche
pdr-tuche / youtube.md
Created November 22, 2022 04:51 — forked from bitsurgeon/youtube.md
Markdown cheatsheet for YouTube

Embed YouTube Video in Markdown File

  1. Markdown style
[![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q)
  1. HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">
@pdr-tuche
pdr-tuche / funcionario.c
Created December 6, 2022 12:20
funcionario
#include <stdbool.h>
#include <stdio.h>
typedef struct funcionario {
char nome[50];
int idade;
char sexo;
char CPF[10];
char dataNascimento[3];
int codigoSetor;
@pdr-tuche
pdr-tuche / main.c
Created December 6, 2022 12:21
aluno
#include <stdbool.h>
#include <stdio.h>
typedef struct aluno {
char nome[50];
char matricula[10];
float notas[2];
float media;
bool aprovacao;
@pdr-tuche
pdr-tuche / main.py
Last active December 6, 2022 14:35
Script de contagem de dias
from datetime import datetime
user_input = input('entre com seu objetivo e deadline separados por (:)\n')
#colocando a string na lista
input_list = user_input.split(':')
#tratando a lista
objetivo =input_list[0]
deadline = input_list[1]
#preparando calculo dos dias
data_deadline = datetime.strptime(deadline, "%d.%m.%Y")
@pdr-tuche
pdr-tuche / request.py
Last active December 21, 2023 04:42
Request to gitlab API
import requests
user_name = input("digite aqui o seu usuário do gitlab: ")
response = requests.get(f"https://gitlab.com/api/v4/users/{user_name}/projects") #type -> <class 'requests.models.Response'>
lista_meus_projetos = response.json() #type -> <class 'list'> O metodo json converte o tipo para lista
for projeto in lista_meus_projetos:
print(f"nome do projeto: {projeto['name']} \nURL do projeto: {projeto['web_url']}\n")