Skip to content

Instantly share code, notes, and snippets.

View machiq's full-sized avatar

Matthew Crnich machiq

View GitHub Profile
@machiq
machiq / folder-creation-script-agency.js
Last active October 18, 2021 20:46
Frame.io API JS Script which creates folders Automatically from a Webhook, Agency Structure
// Destructure Zapier-defined variables
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData;
// Frame.io variables. To run on Zapier you must provide your API Token
const AuthHeader = {
Authorization: `Bearer ${AUTH_TOKEN_KEY}`,
'Content-Type': 'application/json'
};
const API_URL = "https://api.frame.io/v2";
@kylenstone
kylenstone / gist:04a0ec34ff42ca5fde75e986c83ef3b5
Created November 24, 2020 19:02
Enriching Frame.io comments data with Zapier and Excel Online
import requests
import json
"""
This code demonstrates how to catch Frame.io comments in Zapier
to route them to another app such as Google Docs or Excel.
The following refactors could improve this code:
1. input_data (populated by Zapier) should be presumed to be a comment_id,
not an asset_id. This would simplify the code and reduce API calls.
@kylenstone
kylenstone / frameIOFolderTemplaterZapier.js
Last active October 28, 2020 21:18
Frame.io Folder Templater for Zapier Code Steps (Node 10.x+)
/**
/ This sample code demonstrates applying a Folder template to a Frame.io Project.
/ A Zapier Code Step must be configured to catch webhook events emitted by Frame.io.
/ Learn about Frame.io webhooks: https://docs.frame.io/docs/webhooks
/ Learn about using JavaScript in Zapier: https://zapier.com/help/create/code-webhooks/use-javascript-code-in-zaps
*/
// Destructure Zapier-defined variables
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData;
@yufengg
yufengg / AutoML_data_preparation_AIA023.ipynb
Last active July 24, 2024 09:26
Notebook for preparing a CSV for Google Cloud AutoML Vision
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benatwork
benatwork / ffmpeg thumbnail generator
Created July 11, 2012 14:37
ffmpeg bash script to generate thumbnails for all videos in a folder
for f in *.mov; do ffmpeg -y -i "$f" -f image2 -ss 10 -vframes 1 -an "${f%.mov}.jpg"; done