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
# /// script | |
# requires-python = ">=3.11" | |
# dependencies = [ | |
# ] | |
# /// | |
print("hello, world from my gist!") |
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
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "matplotlib", | |
# ] | |
# /// | |
from itertools import chain | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches |
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
#!python3 | |
""" | |
PIPX-like tool for conda | |
Examples | |
-------- | |
cx install black | |
cx install black -p 3.11 | |
cx install git+https://github.com/psf/black |
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
#!python3 | |
""" | |
Examples | |
-------- | |
$ pipx run https://gist.githubusercontent.com/mmngreco/2d3bc321405b1991277fd6001060df0d/raw/dot2ascii.py help | |
$ pipx run https://gist.githubusercontent.com/mmngreco/2d3bc321405b1991277fd6001060df0d/raw/dot2ascii.py "graph {a -- b -- c}" | |
$ echo "graph {rankdir=LR; a -- b -- c }" | pipx run https://gist.githubusercontent.com/mmngreco/2d3bc321405b1991277fd6001060df0d/raw/dot2ascii.py | |
""" | |
# /// script | |
# requires-python = ">=3.10" |
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 numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.signal import convolve2d | |
def build_filter(size, sigma): | |
# Construir matriz gaussiana 3x3 | |
x = np.arange(-size / 2 + 1, size / 2 + 1) | |
y = x[:, np.newaxis] |
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
😀😁😂🤣😃😄😅😆😉😊😋😎😍😘😗😙😚☺🙂🤗🤩🤔🤨😐😑😶🙄😏😣😥😮🤐😯😪😫😴😌😛😜😝🤤😒😓😔😕🙃🤑😲☹🙁😖😞😟😤😢😭😦😧😨😩🤯😬😰😱😳🤪😵😡😠🤬😷🤒🤕🤢🤮🤧😇🤠🤡🤥🤫🤭🧐🤓😈👿👹👺💀☠👻👽👾🤖💩 |
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
var extension = prompt("choose an extension? (csv, xls, xlsx, txt, json, xml, shp, zip)"); | |
var div = document.createElement("div"); | |
div.innerHTML = ` | |
<h1>All ${extension} links</h1> | |
<button id='findAllLinkBut${extension}'>Find all ${extension} links</button> | |
<details><summary>Click to expand</summary> |
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
bq query --format=sparse --nouse_legacy_sql ' | |
WITH temporal AS ( | |
-- | x | y | z | | |
SELECT 1 AS x , "foo" AS y , true AS z UNION ALL | |
SELECT 2 AS x , "apple" AS y , false AS z UNION ALL | |
SELECT 3 AS x , "" AS y , true AS z | |
), | |
staging as ( | |
SELECT 1 AS x , "boo" AS y , true AS z UNION ALL | |
SELECT 2 AS x , "apple" AS y , false AS z UNION ALL |
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
def is_running_on_ipython(): | |
try: | |
from IPython import get_ipython | |
except ImportError: | |
return False | |
if get_ipython() is None: | |
return False | |
return 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
# Airflow resources | |
* [Ecosystem | Apache Airflow](https://airflow.apache.org/ecosystem/#learning-resources) | |
* [The Complete Hands-On Introduction to Apache Airflow | Udemy](https://www.udemy.com/course/the-complete-hands-on-course-to-master-apache-airflow/) | |
* [jghoman/awesome-apache-airflow: Curated list of resources about Apache Airflow](https://github.com/jghoman/awesome-apache-airflow) | |
* [Apache Airflow: Complete Hands-On Beginner to Advanced Class | Udemy](https://www.udemy.com/course/apache-airflow-course/) | |
* [Airflow Summit 2022 sessions | Airflow Summit](https://airflowsummit.org/sessions/2022/) | |
* [Data Engineering Zoomcamp - YouTube](https://www.youtube.com/playlist?list=PL3MmuxUbc_hJed7dXYoJw8DoCuVHhGEQb) |
NewerOlder