Skip to content

Instantly share code, notes, and snippets.

View Per48edjes's full-sized avatar
👉
This is a good point.

Ravi Dayabhai Per48edjes

👉
This is a good point.
View GitHub Profile
@Per48edjes
Per48edjes / fiddler_20240927.ipynb
Created September 29, 2024 07:03
Fiddler on the Proof: Fiddler (09/27/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / incremental_external_transform.py
Last active September 28, 2024 07:35
Attempt at distributed a workload efficiently to achieve incremental transforms without ever listing S3 contents
from functools import reduce
from transforms.api import transform_df, Input, Output
@transform_df(
Output("/data_project/manifests/trp_synced_paths_manifest"),
incremental_manifest=Output("/data_project/manifests/trp_incremental_manifest"),
synced_paths=Input("/data_project/manifests/trp_synced_paths_manifest"),
bucket_data=Input("/data_project/input/s3_bucket_data_source") # Data source for your bucket content
)
def incremental_sync_and_update(ctx, synced_paths, bucket_data):
@Per48edjes
Per48edjes / fiddler_20240726.ipynb
Last active August 8, 2024 07:04
Fiddler on the Proof: Fiddler (07/26/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / fiddler_20240628.ipynb
Last active August 8, 2024 07:03
Fiddler on the Proof: Fiddler (06/28/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / fiddler_20240621.md
Last active July 1, 2024 04:32
Fiddler on the Proof: Fiddler (06/21/2024)

Fiddler on the Proof

Ravi Dayabhai & Conrad Warren 🧱 2024-06-21

Problem

Consider the following array of 25 squares:

You are filling the array with rectangles by repeating the following two steps:

@Per48edjes
Per48edjes / fiddler_20240614.md
Last active July 1, 2024 04:33
Fiddler on the Proof: Fiddler (06/14/2024)

Fiddler on the Proof

Ravi Dayabhai 🔵 2024-06-14

Problem

You want to pack four rows of unit circles into a rectangle with a base of 8. You’re considering two strategies for packing:

Square packing. In this case, four rows of circles each are packed in an array of squares.

@Per48edjes
Per48edjes / fiddler_20240607.ipynb
Last active July 1, 2024 04:34
Fiddler on the Proof: Fiddler (06/07/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / fiddler_20240601.ipynb
Last active July 1, 2024 04:34
Fiddler on the Proof: Fiddler (06/01/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / fiddler_20240524.ipynb
Last active June 4, 2024 18:05
Fiddler on the Proof: Fiddler (05/24/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Per48edjes
Per48edjes / fiddler_20240517.ipynb
Last active May 25, 2024 00:53
Fiddler on the Proof: Fiddler (05/17/2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.