Skip to content

Instantly share code, notes, and snippets.

@amboar
amboar / README.md
Last active June 8, 2022 08:39
String Clustering Performance

String Clustering with Python (and C)

I became interested in string clustering through developing fpos, a set of Python scripts for graphing my spending habits. In a clear failure of research I missed the existance of libraries like:

@andrevrochasilva
andrevrochasilva / cloudfn.js
Last active December 9, 2023 19:03
Codes used to make the POC with dataflow, cloud functions and BigQuery
const { google } = require('googleapis');
const dataflow = google.dataflow('v1b3');
const TEMPLATE_BUCKET = `your-bucket`;
module.exports.kickOffDataflow = async (event, event_description) => { // Check if the file was put in 'input/' folder
if (!event['id'].includes('/input/')){
return
}
const input = 'gs://' + event['id'].split('/').slice(0, -1).join('/')
const jobName = `citiesonbigquery`;
const tmpLocation = `gs://${TEMPLATE_BUCKET}/tmp`;