This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
# Bot para hacer comentarios random sobre las tendencias # | |
############################################################# | |
import tweepy | |
from time import sleep | |
from random import randrange | |
# Acceso a Twitter | |
auth = tweepy.OAuthHandler("consumer_key", "consumer_secret") | |
auth.set_access_token("access_token", "access_token_secret") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tweepy | |
# Acceso a Twitter | |
auth = tweepy.OAuthHandler("consumer_key", "consumer_secret") | |
auth.set_access_token("access_token", "access_token_secret") | |
# Creando el objeto API | |
api = tweepy.API(auth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importamos las herramientas para el procesamiento de la imagen | |
from PIL import Image | |
# Escogemos la imagen que vamos a convertir | |
# Hay que aclarar que el 10 es por que se reescala una imagen de 1/10 | |
# Todo dependera de la imagen que ocupemos es el tamaño que vamos a reescalar | |
# En mi caso es una imagen de 512*512 que se reescala a una imagen de 51*51 | |
imagen = Image.open("doge.jpg") | |
imagen = imagen.resize((int(imagen.width / 10), int(imagen.height / 10))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Practica De Arboles ABB | |
#include <iostream> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <windows.h> | |
using namespace std; | |
struct Nodo | |
{ | |
int dato; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <time.h> | |
#include <stdlib.h> | |
using namespace std; | |
class Critico | |
{ | |
private: | |
int random[100],golpes,nocrits,rancrits[100],pro,ga; | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<conio.h> | |
#include<string.h> | |
char VerLinea(char [][100],int , int,int); | |
char VerLine(char [][100],char [][100],int ,int ,int ,int ); | |
main() | |
{ | |
char L1[21][100] = {"Linea 1 ","Observatorio","Tacubaya","Juanacatlan","Chapultepec","Sevilla","Insurgentes","Cuahutemoc","Balderas","Salto Del Agua","Isabel La Catolica","Pino Suarez","Merced","Candelaria","San Lazaro","Moctezuma","Balbuena","Boulevard Puerto Aereo","Gomez Farias","Zaragoza","Pantitlan"}; | |
char L2[25][100] = {"Linea 2 ","Cuatro Caminos","Panteones","Tacuba","Cuitlahuac","Popotla","Colegio Militar","Normal","San Cosme","Revolucion","Hidalgo","Bellas Artes","Allende","Zocalo","Pino Suarez","San Antonio Abad","Chabacano","Viaducto","Xola","Villa De Cortes","Nativitas","Portales","Ermita","General Anaya","Tasquena"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Programa que lee 20 tipos de datos diferentes | |
#include "iostream" | |
#define PI 3.1416; | |
using namespace std; | |
void dato19(); | |
int main() | |
{ | |
//Decalracion de variables | |