Skip to content

Instantly share code, notes, and snippets.

View VivekThazhathattil's full-sized avatar
♦️
അങ്ങനെ പോകുന്നു...

Vivek T. VivekThazhathattil

♦️
അങ്ങനെ പോകുന്നു...
View GitHub Profile
@VivekThazhathattil
VivekThazhathattil / rotate-video.sh
Created February 7, 2024 04:12 — forked from ViktorNova/rotate-video.sh
Rotate a video with FFmpeg (100% lossless, and quick)
$INPUTVIDEO='input.mp4'
$OUTPUTVIDEO='output.mp4'
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
@VivekThazhathattil
VivekThazhathattil / rotate_rank2_tensor.c
Created January 27, 2024 07:44
Rotate a rank 2 tensor of dimension 3 x 3 about a given axis by a given angle
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define N 3
/*--- assign some values to our input matrix ---*/
double** fill_rank2_tensor(void)
{
int i, j;
double** t = (double**) malloc(sizeof(double*) * N);