Skip to content

Instantly share code, notes, and snippets.

View pedromaironi's full-sized avatar
Looking for Job

Pedro Toribio pedromaironi

Looking for Job
View GitHub Profile
@pedromaironi
pedromaironi / README-español.md
Created May 2, 2020 06:22 — forked from DiR081/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@pedromaironi
pedromaironi / device.xml
Created December 17, 2020 06:45
Samsung Galaxy S8 AVD Hardware Profile
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<d:devices xmlns:d="http://schemas.android.com/sdk/devices/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d:device>
<d:name>Samsung Galaxy S8</d:name>
<d:manufacturer>User</d:manufacturer>
<d:meta/>
<d:hardware>
<d:screen>
<d:screen-size>large</d:screen-size>
<d:diagonal-length>5.80</d:diagonal-length>
@pedromaironi
pedromaironi / mainActivity.java
Created February 27, 2021 00:37
DownloadManagerService
package com.pedrodev.appchat.activities;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.FileProvider;
import android.Manifest;
import android.app.AlertDialog;
package com.pedrodev.appchat.activities;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.FileProvider;
import android.Manifest;
import android.app.AlertDialog;
private void showNotification(String uri, String title, String body) {
NotificationHelper notificationHelper = new NotificationHelper(getBaseContext());
NotificationCompat.Builder builder = notificationHelper.getNotification(uri,title, body);
Random random = new Random();
int n = random.nextInt(10000);
notificationHelper.getManager().notify(n, builder.build());
}
// Class
package com.pedrodev.check_version.utils;
@pedromaironi
pedromaironi / MainActivity.md
Created March 6, 2021 03:34
MainActivity.md

Main activity

In this activity in the design we will only use two buttons, the colors can be found in the values ​​folder and also in material palett. Material palette The icons in Flaticon - icons

<?xml version="1.0" encoding="utf-8"?>  
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#################################################
# BOT TOKEN #
#################################################
import os
import telebot
from telebot import types
{
"start_1":"Hi %s, first of all, select your language :)",
"start_2":{
"es":"Bienvenido a @LoL_bot. Este bot te mostrará todos los aspectos disponibles, te avisará de las nuevas ofertas y rotaciones, te permitirá ver información de invocadores y partidas, contra quién es débil y contra quién fuerte cada personaje y más cosas en el futuro :)",
"en":"Welcome to @LoL_bot. This bot will show you all the skins and champions, will notify you when new sales are rotations are availables, will let you see information about summoners and matches, who is weak or strong versus each champion and more things in the future! :)",
"it":"Benvenuto a @LoL_bot. Questo bot ti mostrerà tutti i campioni disponibili e i loro rispettivi aspetti, ti avviserà delle nuove offerte e rotazioni, ti permetterà vedere informazioni su evocatori e partite, contro chi è debole e contro chi è forte ogni personaggio e più cose nel futuro! :)",
"de":"Willkommen beim @LoL_bot. Dieser Bot zeigt alle Skins und
# -*- coding: utf-8 -*-
from config import *
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan} 00.py importado.{/cyan}'))
@bot.message_handler(commands=['cancel'])
def command_cancel(m):
# -*- coding: utf-8 -*-
from config import *
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan} about.py importado.{/cyan}'))
@bot.message_handler(
func=lambda m: m.content_type == 'text' and m.text in [