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 json | |
from datetime import datetime, timezone, timedelta | |
import bytewax.operators.window as op_w | |
from bytewax.bytewax import EventClockConfig, SessionWindow | |
from bytewax.dataflow import Dataflow | |
import bytewax.operators as op | |
from bytewax.connectors.files import FileSource | |
from bytewax.connectors.stdio import StdOutSink |
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
[tool.poetry] | |
name = "test" | |
version = "0.1.0" | |
description = "" | |
authors = ["Antonio Feregrino <antonio.feregrino@gmail.com>"] | |
readme = "README.md" | |
[tool.poetry.dependencies] | |
python = "^3.8" |
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
#!/usr/bin/env bash | |
function dopptx { | |
source_folder=$(basename -- $1) | |
tmp_folder="${source_folder}_tmp" | |
slides_name="${source_folder%%_*}.pptx" | |
cp -r $source_folder $tmp_folder | |
find $tmp_folder -type f -name "*.xml" -exec sh -c "cat {} | xmllint --noblanks - | sponge {}" \; |
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
reddit = praw.Reddit( | |
client_id=os.environ["CLIENT_ID"], | |
client_secret=os.environ["CLIENT_SECRET"], | |
password=os.environ["PASSWORD"], | |
user_agent="Live Thread Scraper by UkraineNewsBot", | |
username="UkraineNewsBot", | |
) |
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
name: Download dataset | |
on: | |
schedule: | |
- cron: "0 10 * * *" | |
jobs: | |
process: | |
runs-on: ubuntu-latest | |
steps: |
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
# http://www.aaronbell.com/how-to-create-overviewer-maps-from-minecraft-realms/ | |
FROM python:3.8 | |
RUN git clone https://github.com/air/minecraft-tools.git && cd minecraft-tools | |
RUN apt-get update && apt-get install -y httpie jq && \ | |
apt-get install -y software-properties-common && apt-add-repository 'deb http://overviewer.org/debian ./' | |
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 |
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
from bs4 import BeautifulSoup | |
MEDIUM_URL = "https://medium.com/" | |
URL_LEN = len(MEDIUM_URL) | |
def parse(message, **kwargs): | |
soup = BeautifulSoup(message, "lxml") | |
main = soup.find("table", {"class":"email-fillWidth"}) | |
digest = main.find("table", {"class":"email-digest"}) |
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
# For more options and information see | |
# http://rpf.io/configtxt | |
# Some settings may impact device functionality. See link above for details | |
# Enable VGA monitor through converter | |
hdmi_force_hotplug=1 | |
hdmi_ignore_edid=0xa5000080 | |
hdmi_drive=2 | |
hdmi_group=2 | |
hdmi_mode=35 |
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
def descarga(): | |
pass |
NewerOlder