Skip to content

Instantly share code, notes, and snippets.

Thiago thiagodeschamps

Block or report user

Report or block thiagodeschamps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View trabalho_1_recursao.c
// Informações do estudante
// Nome: Thiago Deschamps Reis Felix
// Curso: Engenharia de Computacao
// RA: 758671
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <math.h>
@thiagodeschamps
thiagodeschamps / multDinMatrix.c
Last active Mar 20, 2019
Matrix multiplication using dynamic allocation.
View multDinMatrix.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define D 100
#define MAX_VALUE 100
void randomize(int **matrix, int l){
int n;
@thiagodeschamps
thiagodeschamps / wordFinder.c
Last active Feb 4, 2019
find a specific sequence of letters in a string
View wordFinder.c
#include <stdio.h>
int str_len(char s[]);
int compare(char s1[], char s2[]);
int main(void){
int n, i, j, k, l = 0;
scanf("%d",&n);
@thiagodeschamps
thiagodeschamps / polingraphics.cpp
Created Dec 22, 2018
Uso de polimorfismo e interface grafica, recebendo comandos do teclados para mover os objetos
View polingraphics.cpp
/*
https://github.com/jakleg
INTRUCOES:
CONTROLES:
- CIRCULO: W, A, S, D;
- QUADRADO: F, T, G, H;
@thiagodeschamps
thiagodeschamps / ytdown.py
Last active Dec 22, 2018
Python script that search and download videos from youtube
View ytdown.py
from bs4 import BeautifulSoup
import requests
import pytube
import os
if not os.path.exists('videos'):
os.makedirs('videos')
os.chdir('videos')
@thiagodeschamps
thiagodeschamps / exemplo_tweepy.py
Last active Dec 20, 2018 — forked from marcoscastro/exemplo_tweepy.py
Obtendo tweets de usuário com Python e tweepy
View exemplo_tweepy.py
import tweepy
auth = tweepy.OAuthHandler('46pvnSwIVylfWepbPsP4433wL', 'xWDPHaUkk0ub93qj1DaYgJcO8QtkPUhNFIE7uBAvzbSVLLpLzR')
auth.set_access_token('1952916806-9WbU9ROPLd4aVPprQZqWJhaW4RSXrBw4oK8A4Ow','gW5iuYPtrTxVhPmQxBemsKz6jCAOqbYx1fT0ewKHFyAkG')
api = tweepy.API(auth)
def obter_tweets(usuario, limite):
resultados = api.user_timeline(screen_name=usuario, count=limite)
tweets = []
for r in resultados:
@thiagodeschamps
thiagodeschamps / tweet_dumper.py
Last active Dec 20, 2018 — forked from yanofsky/tweet_dumper.py
A script to download all of a user's tweets into a text file
View tweet_dumper.py
import tweepy
def get_all_tweets(screen_name):
auth = tweepy.OAuthHandler('---------------------', '-----------------------------------------------')
auth.set_access_token('------------------------------------','--------------------------=--')
api = tweepy.API(auth)
alltweets = []
View primesInAFile.c
#include <stdio.h>
int ehprimo(int);
int main(void){
FILE *fp;
fp = fopen("testefileC.txt", "w");
int i = 0;
View IncertezaCombinada.py
def sovem():
print("\n", 55*"=", "\n")
def coleta():
sovem()
print(" Bem-vindo ao calculador de Incertezas Combinadas!")
sovem()
vet = []
@thiagodeschamps
thiagodeschamps / CeasarBruteforce.py
Last active Aug 24, 2018
Show all the possible combinations in a Ceasar encripture
View CeasarBruteforce.py
def decypher(word):
des = ''
pos = 0
for c in range(0, 26):
for i in word:
if ord(i.upper()) + c > 90:
pos = 64
aux = ord(i.upper()) + c - 90
des += chr(pos + aux)
else:
You can’t perform that action at this time.