Skip to content

Instantly share code, notes, and snippets.

View melMass's full-sized avatar
Focusing

Mel Massadian melMass

Focusing
View GitHub Profile
@melMass
melMass / tz
Created September 2, 2021 19:45
I am attesting that this GitHub handle melMass is linked to the Tezos account tz1auzguranCBAHCf6s8Nw27gDroPeopXDbJ for tzprofiles
sig:edsigtrY8SWWWzAWTAaWBUBAPpfnok2bPSGLbkyCxtd3jafa7ktoWrNKqYVGxfye8UucfdV52Ld3PSuEAy8XaFtsqC7WWfbSzUA
@melMass
melMass / README.md
Last active July 27, 2023 10:32 — forked from korakot/draw.py
Drawing on Google Colab

Drawing in Colab

Features

  • Controls for colors and stroke width draw_colab

Examples

draw(bg_color="white")
@melMass
melMass / ffmpeg_cheatsheet.sh
Last active June 29, 2021 21:18
My most used ffmpeg command combination
# Convert all mov in $PWD to png sequences in subfolders
for x in *.mov; do mkdir "${x%.*}" && ffmpeg -i $x "${x%.*}"/"${x%.*}_%04d.png"; done
# H264 Animation
ffmpeg -i input.mov -c:v libx264 -pix_fmt yuv420p -movflags +faststart -preset veryslow -tune animation out.mp4;done
@melMass
melMass / README.md
Last active April 2, 2021 23:09
Nuke batch scripts

Batch Nuke

My collection of batch scripts for Nuke.

Generate SM

With the generate_smart_vector function you can batch load a video folder and generate the appropriate Smart Vectors for each of them.

# I use the interactive version but you can easily parse cli arguments and use execture (-x) instead
@melMass
melMass / AlembicPointCloudBinder.cs
Created November 16, 2020 19:59
Alembic Point Clouds to VFX Graph
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Formats.Alembic.Importer;
using UnityEngine.VFX;
using UnityEngine.VFX.Utility;
namespace MTB.VFX
{
body{
background-color:white;
color:black;
font-family: "Helvetica";
font-size:1.5em;
}
h1>a{
@melMass
melMass / ProceduralMesh.cs
Created June 8, 2020 16:21
BMesh Unity Sample
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static BMesh;
public class ProceduralMesh : MonoBehaviour
{
public float tilling
{
get { return _tilling; }

CLI References

Python

  • Pipenv:

    • pipenv --python [2.7|3.6] Install specific version of python
    • pipenv install --dev --skip-lock Install Dependencies and Dev Dependencies
    • pipenv run xxx Run command inside Virtual Env

Insta360 One

Specs

notes: The bottom lens needs to be flipped horizontaly

blendAngle = 20;
FOV = 210;
mapFunction = (n) => {

return -8.8568 * Math.pow(10,-9) * Math.pow(n, 4) + 1.1095 * Math.pow(10,-6) * Math.pow(n, 3) + -5.045 * Math.pow(10,-5) * Math.pow(n, 2) + 2.4317 * Math.pow(10,-2) * n;

What:

From current sequence containing ARI files, will output each sequences of ari to a file per shot, to be used with Ari ARC_CMD. The script also builds the batch file.