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 base64 | |
from datetime import datetime | |
from airflow import DAG | |
from airflow.operators.bash import BashOperator | |
from airflow.operators.python import PythonOperator | |
from airflow.providers.ssh.operators.ssh import SSHOperator | |
default_args = { | |
'start_date': datetime(2022, 3, 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
import zlib | |
import diskcache | |
class ZLIBDISK(diskcache.Disk): | |
def __init__(self, directory, **kwargs): | |
super(ZLIBDISK, self).__init__(directory, **kwargs) | |
def put(self, key): | |
data = zlib.compress(pickle.dumps(key)) |
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
Example: | |
brew cast install iterm2 | |
https://formulae.brew.sh/analytics/cask-install/30d/ | |
https://formulae.brew.sh/analytics/cask-install/90d/ | |
https://formulae.brew.sh/analytics/cask-install/365d/ | |
iterm2 | |
virtualbox | |
vagrant |
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
Android | |
Ringtone: | |
https://github.com/aosp-mirror/platform_frameworks_base/tree/android-11.0.0_r1/data/sounds/ringtones | |
FreeFlight | |
notification: | |
https://github.com/aosp-mirror/platform_frameworks_base/tree/android-11.0.0_r1/data/sounds/notifications/ogg | |
Selenium | |
Radon |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python3 | |
import random | |
import sys | |
def main(): | |
line = sys.stdin.readline().rstrip() | |
line.rstrip() | |
T = int(line) |
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 <algorithm> | |
#include <cmath> | |
#include <complex> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <ctime> | |
#include <deque> | |
#include <iomanip> | |
#include <iostream> | |
#include <list> |
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 datetime import datetime, timedelta | |
import pendulum | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
# gcloud composer environments run test --project PROJECT --location us-central1 backfill -- -s 2020-02-24 -e 2020-02-26 timezone | |
default_args = {"owner": "airflow"} |
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 datetime import datetime, timedelta | |
from airflow import DAG | |
from airflow.operators.dummy_operator import DummyOperator | |
from airflow.operators.python_operator import PythonOperator | |
default_args = { | |
"depends_on_past": False, | |
"start_date": datetime(2019, 8, 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 datetime import datetime, timedelta | |
import pendulum | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
default_args = {"owner": "airflow"} |
NewerOlder