This file contains hidden or 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
#!/usr/bin/python3 | |
#-*- coding: utf-8 -*- | |
# config.ini structure | |
# | |
# { | |
# "token": "xxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
# "channel": "-1111111111111", | |
# "group": "-22222222222", | |
# "botname": "name_bot", |
This file contains hidden or 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
#!./venv/bin/python3 | |
import os | |
# Buscamos los ficheros que cumplen la condición | |
def find_files(dir, findFile, findText): | |
for root, dir, files in os.walk(dir): | |
for file in files: | |
if(findFile in file.lower()): | |
filePath=root+"/"+file | |
# print(filePath) |
This file contains hidden or 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 pandas as pd | |
# Read the file and specify which column is the date | |
rows = pd.read_excel("excel.xlsx") | |
print(rows["Columna1"]) | |
# Output with dates converted to YYYY-MM-DD | |
fecha = pd.to_datetime(rows["Columna1"]).dt.strftime("%d-%m-%y") | |
rows["Columna1"] = fecha |
This file contains hidden or 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
conky.config ={ | |
-- CONKY SETTINGS | |
background = false, | |
update_interval = 1, | |
total_run_times = 0, | |
cpu_avg_samples = 2, | |
net_avg_samples = 2, | |
override_utf8_locale = true, |
This file contains hidden or 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
# thanks to https://platzi.com/blog/bot-python/ | |
from bs4 import BeautifulSoup #del módulo bs4, necesitamos BeautifulSoup | |
import requests | |
import schedule | |
import time | |
def bot_send_text(bot_message): | |
bot_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' |
This file contains hidden or 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
from tkinter import ttk | |
from tkinter import * | |
import os | |
import errno | |
import sqlite3 | |
class Products: | |
db_name = r'.\db\database_products.db' |
This file contains hidden or 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
from tkinter import * | |
from tkinter import ttk | |
import os | |
class MyRenamer: | |
def __init__ (self, window): | |
window.title("Renombrador de archivos") | |
self.dir = "" | |
This file contains hidden or 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
<scen-input-numerico [(value)]="numero" required ></scen-input-numerico> |
This file contains hidden or 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 { Component, OnInit, LOCALE_ID } from '@angular/core'; | |
//import { merge } from 'rxjs'; | |
//import { MyCurrencyFormatterDirective } from "./directivas/my-currency-formatter.directive"; | |
// Locales para number pipe | |
import { registerLocaleData } from '@angular/common'; | |
import es from '@angular/common/locales/es'; | |
registerLocaleData(es, 'es'); |
This file contains hidden or 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
{ | |
// Utilizar IntelliSense para aprender acerca de los posibles atributos. | |
// Mantenga el puntero para ver las descripciones de los existentes atributos | |
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Chrome", | |
"type": "chrome", | |
"request": "launch", |
NewerOlder