This algorithm returns the points that form an orthogonal path between two rectangles.
// Define shapes
const shapeA = {left: 50, top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
#!/bin/bash | |
# MIT License | |
# Copyright (c) 2022-present MoyuScript | |
# See: https://mit-license.org/ | |
echo "Input path: $1" | |
echo "With subset: $2" | |
echo "Custom text file: $3" |
figma.showUI(__html__,{width: 250, height: 250}); | |
// restore previous size | |
figma.clientStorage.getAsync('size').then(size => { | |
if(size) figma.ui.resize(size.w,size.h); | |
}).catch(err=>{}); | |
figma.ui.onmessage = msg => { | |
switch (msg.type) { | |
case "resize": | |
figma.ui.resize(msg.size.w,msg.size.h); | |
figma.clientStorage.setAsync('size', msg.size).catch(err=>{});// save size |
This algorithm returns the points that form an orthogonal path between two rectangles.
// Define shapes
const shapeA = {left: 50, top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
Last Updated: 28 October 2024 | |
----------------------------- | |
In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import | |
modules for scripting access (DaVinciResolve.py) and some representative examples. | |
From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes. | |
Overview | |
-------- | |
As with Blackmagic Fusion scripts, user scripts written in Lua and Python programming languages are supported. By default, scripts can be invoked from the Console window in the Fusion page, |
#!/usr/bin/env python3 | |
import numpy as np | |
from PIL import Image | |
import imageio | |
import OpenEXR | |
import struct | |
import os | |
def get_pointcloud(color_image,depth_image,camera_intrinsics): |
'use strict' | |
const password = 'secure secret key' | |
const encrypt = (content, password) => CryptoJS.AES.encrypt(JSON.stringify({ content }), password).toString() | |
const decrypt = (crypted, password) => JSON.parse(CryptoJS.AES.decrypt(crypted, password).toString(CryptoJS.enc.Utf8)).content | |
// Encrypt | |
const encryptedString = encrypt('This is a string', password) | |
const encryptedObject = encrypt({ test: 'This is an object' }, password) |
#!/usr/bin/env python3 | |
from v4l2 import * | |
import fcntl | |
import mmap | |
import select | |
import time | |
vd = open('/dev/video0', 'rb+', buffering=0) |
This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb