This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -framerate 1 -pattern_type glob -i "*.jpg" -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -q:v 0 -r 60 output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Emanuele Ruffaldi 2024 | |
import mmap | |
import json | |
import os | |
import struct | |
import sys | |
def extract_boxes(mp4_file,offset=0,size=None): | |
""" | |
Parse the MP4 file and extract all boxes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main(workbook: ExcelScript.Workbook) { | |
// Specify the sheet names | |
let mainSheetName = "System Items"; | |
let lookupSheetName = "Foglio1"; | |
// Get the sheets | |
let mainSheet = workbook.getWorksheet(mainSheetName); | |
let lookupSheet = workbook.getWorksheet(lookupSheetName); | |
// Get used ranges (assuming data starts from row 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main(workbook: ExcelScript.Workbook) { | |
// Specify the worksheet name | |
let worksheetNameS = "Foglio2"; // Adjust the sheet name as necessary | |
let worksheetS = workbook.getWorksheet(worksheetNameS); | |
// Specify the worksheet name | |
let worksheetNameD = "Foglio1"; // Adjust the sheet name as necessary | |
let worksheetD = workbook.getWorksheet(worksheetNameD); | |
// Starting and ending cells in the column containing the range addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=LAMBDA(r,p,y,ARCCOS((COS(p)*COS(r)+COS(p)*COS(y)+COS(y)*COS(r)+SEN(p)*SEN(r)*SEN(y)-1)/2))(A3,B3,C3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Dependencies: curl gcc make autoconf | |
# | |
# Changes: 2024-01-03 Emanuele Ruffald | |
# Updated to latest libraries, modified for building openssh, added some if for debugging | |
set -uex | |
umask 0077 | |
ZLIB_VERSION=1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run command Open Keyboard Shortcuts (JSON) | |
// AltGr+ì is oem_6 ==> use Open Keyboard Shortcuts , select record key and press the shortcut | |
[ | |
{ "key": "oem_6", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "~" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EXCLUDES Comments | |
from pptx import Presentation | |
import sys | |
prs = Presentation(sys.argv[1]) | |
for i,slide in enumerate(prs.slides): | |
print("---------------------- Slide %d" % (i+1)) | |
for shape in slide.shapes: | |
if hasattr(shape, "text"): | |
print(shape.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% based on combination of online info | |
git clone https://github.com/opencv/opencv.git -b "4.5.2" --depth 1 | |
git clone https://github.com/opencv/opencv_contrib.git -b "4.5.2" --depth 1 | |
set "opencvSource=opencv-4.5.2" | |
set "opencvExtraModules=opencv_contrib-4.5.2/modules" | |
set "opencvBuild=%opencvSource%\build" | |
set "compiler=Visual Studio 16 2019" | |
set "buildType=Release" | |
set python3_executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Testedt with GCC and CLang | |
// Not working with ICC due to the UTF-8 | |
// MSVC requires /utf-8 option | |
#include <iostream> | |
// from https://riptutorial.com/cplusplus/example/23817/named-operators | |
// modified to use < > instead of * | |
// modified for adding unary version | |
namespace named_operator { | |
template<class D>struct make_operator{constexpr make_operator(){}}; |
NewerOlder