Skip to content

Instantly share code, notes, and snippets.

@ohss
ohss / uploadToSupabase.tsx
Last active October 20, 2022 08:30
Upload audio file to supabase with expo
const uri = "path/to/your/file";
const fileExtension = uri.split('.').pop();
const formData = new FormData();
formData.append('audioFile', {
uri: uri,
type: `audio/x-${fileExtension}`,
name: 'name',
} as any);
/*
* Visual arts with Processing
* Chapter 0, The Beginning
* Otso Sorvettula, Mehackit (CC BY-SA 4.0)
*
* This program takes an image and transforms it into a binary image. You can draw on the by image using the mouse.
*
* Set the image by setting the url for linkToImage variable
*
* Change the threshold by pressing '+' and '-'.
@ohss
ohss / Self_portrait_webcam.pde
Last active July 18, 2017 09:18
Mehackit Visual arts with Processing, Chapter 0: Self portrait
/*
* Visual arts with Processing
* Chapter 0, The Beginning
* Otso Sorvettula, Mehackit (CC BY-SA 4.0)
*
* This program takes the webcam feed and transforms it into a binary image.
You can draw on the by image using the mouse.
*
* Change the threshold by pressing '+' and '-'.
* Toggle webcam feed on and off with 't'.