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
# Print each key-value pair in json_data | |
for k in json_data.keys(): | |
print(k + ': ', json_data[k]) |
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
# define defaults in variables.tf | |
variable "region" { | |
description = "Region for GCP resource" | |
default = "europe-west6" | |
type = string | |
} | |
# use variables in main.tf | |
resource "google_storage_bucket" "data_lake_bucket" { | |
name = "your_data_lake_name" |
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 os | |
import pandas as pd | |
from pathlib import Path | |
file_name = 'my_file.csv' | |
path = Path('long_path/to/my_dir') | |
output_file = 'long_path/to/my_dir/my_file.csv' |
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
# assign today's date to variable today via os.system | |
# datetime version | |
import datetime as dt | |
today = dt.date.today().strftime('%Y-%m-%d') | |
# pandas version | |
import pandas as pd | |
today = pd.to_datetime('today').date() |
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
#' --- | |
#' title: "Something fascinating" | |
#' author: "Jenny Bryan" | |
#' date: "`r format(Sys.Date())`" | |
#' output: github_document | |
#' --- |
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
### Keybase proof | |
I hereby claim: | |
* I am lisallreiber on github. | |
* I am tripl (https://keybase.io/tripl) on keybase. | |
* I have a public key ASCwOCCeBzNPD07y7tXCssmCwB1TH_v2lSAfRN4Hg2NEogo | |
To claim this, I am signing this object: |