Skip to content

Instantly share code, notes, and snippets.

View pellicceama's full-sized avatar

Amadeo Pellicce pellicceama

View GitHub Profile
@pellicceama
pellicceama / stream-merge.ts
Created September 5, 2024 18:36
Merge two parquet files in a cloudflare worker
import initWasm, { ParquetFile, transformParquetStream } from './parquet-wasm';
import binary from './parquet-wasm/parquet_wasm_bg.wasm';
interface Env {
DEV_PARQUET_BUCKET: R2Bucket;
}
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
await initWasm(binary);
@pellicceama
pellicceama / excel-parser.py
Last active February 1, 2019 12:39
Parses excel files using openpyx, infers column data types and prints them to the console
#!/usr/local/bin/python
import sys
from openpyxl import load_workbook
filename=sys.argv[1]
headers_row=sys.argv[2]
data_row=sys.argv[3]
print "Parsing Filename: ", filename

Keybase proof

I hereby claim:

  • I am pellicceama on github.
  • I am pellicceama (https://keybase.io/pellicceama) on keybase.
  • I have a public key ASAmHL9Ay0OwMT7PlwFu0M5zEXX8rq31S0I6hvkBeUIk3wo

To claim this, I am signing this object: