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 / iso-edit.psm1
Last active May 1, 2022 18:16 — forked from jonathanelbailey/iso_image_edit.psm1
A PowerShell module to "modify" ISO images.
# this function grabs the iso image from the user supplied http location.
function Get-IsoImage {
[CmdletBinding()]
param(
$uri,
$workingfolder
)
begin {
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$", '$1'
$out_file = Join-Path $workingfolder -ChildPath $file_name
@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; }
@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 / 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

PaintCode Expressions

Operators

!b boolean logical negation of b
x * y numbers product of numbers x and y

@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{

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;