Skip to content

Instantly share code, notes, and snippets.

View melMass's full-sized avatar
Focusing

Mel Massadian melMass

Focusing
View GitHub Profile
// UPGRADED TO SWIFT 3
// fn_lister.swift
// MTB_Kit
//
// Created by Mel Massadian on 04/10/16.
// Copyright © 2016 Mel Massadian. All rights reserved.
//
import Cocoa
import Foundation
import AppKit

Migrate Brew Cask

  1. Move the casks to the new location
sudo mv /opt/homebrew-cask/Caskroom /usr/local

Fit Range

OldRange = (OldMax - OldMin)  
NewRange = (NewMax - NewMin)  
NewValue = (((OldValue - OldMin) * NewRange) / OldRange) + NewMin
@melMass
melMass / 0_reuse_code.js
Created November 11, 2016 18:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@melMass
melMass / MTB_normalize.c
Last active January 3, 2017 17:17
Simple normalize node in VEX for Houdini (Points)
// NORMALIZE in VEX for Houdini
// Normalize input mesh (resize it to 1 unit) and centers it.
//INIT
vector min, max;
getbbox(min, max);
vector center = (min+max)/2;
vector size = set(max.x - min.x,max.y -min.y,max.z - min.z);
@melMass
melMass / edl_write.py
Created December 12, 2017 16:43
# Simple script to extract read nodes from the comp and sequence them to a one track EDL for DI
####################################
# File name: edl_write #
# Author: Mel Massadian #
# Submission: 12/12/17 #
####################################
import os
import sys
from timecode import Timecode

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.

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;

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
body{
background-color:white;
color:black;
font-family: "Helvetica";
font-size:1.5em;
}
h1>a{