Skip to content

Instantly share code, notes, and snippets.

View skunkwerk's full-sized avatar

Imran Akbar skunkwerk

View GitHub Profile
@djkskqyr3
djkskqyr3 / mediastream-I420A-to-I420-converter.js
Created November 23, 2021 02:10 — forked from saravanannkl/mediastream-I420A-to-I420-converter.js
Media stream video frame I420A to I420 converter
// Based on https://web.dev/mediastreamtrack-insertable-media-processing/
// Uses Webcodecs API, which is supported only in Chrome as of November 2021
function convertI420AFrameToI420Frame(frame) {
const { width, height } = frame.codedRect;
// Y, U, V, Alpha values are stored sequentially. Take only YUV values
const buffer = new Uint8Array(width * height * 3);
frame.copyTo(buffer, { rect: frame.codedRect });
const init = {
timestamp: 0,
@ih2502mk
ih2502mk / list.md
Last active March 17, 2026 01:17
Quantopian Lectures Saved
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active March 16, 2026 19:49
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@omarish
omarish / Load_CSV_to_Vertica.md
Last active December 8, 2019 02:44
Quick primer on loading a large CSV file into a Vertica Database.

Load a Large CSV into Vertica

Here's an efficient way to load a dataset into Vertica by splitting it up into multiple pieces and then parallelizing the load process.

Note that this only makes sense if your Vertica cluster is a single node. If it's running more nodes, there are definitely more efficient ways of doing this.

For this example, the large CSV file will be called large_file.csv. If your file is under 1GB, it probably makes sense to load it using a single COPY command.