Skip to content

Instantly share code, notes, and snippets.

@carylee
carylee / stith_virtual_choir.sh
Created November 8, 2020 18:50
Virtual Choir ffmpeg script: 1000 Reasons
#!/bin/bash
ffmpeg -y \
-ss 16.02 -i "10kReasons-DanaB.mp4" \
-ss 24.3 -i "John La Fond - 20201025_150703[1].mp4" \
-ss 28.40 -i "Isaac - 2020-10-26 18.36.32 - FullSizeRender.mp4" \
-ss 6.65 -i "tess.mp4" \
-ss 26.7 -i "Jackie - JNC 10000.mp4" \
-ss 24.28 -i "Claire Gebben - 20201027_165558.mp4" \
-ss 23.85 -i "mike.mp4" \
-ss 27.03 -i "Joe Frost - IMG_0742.mp4" \
@carylee
carylee / crop.py
Created November 8, 2020 18:47
Face-aware video cropping
#!/usr/bin/env python3
import click
import ffmpeg
from matplotlib import pyplot as plt
import matplotlib
import face_recognition
from PIL import Image
import numpy as np
def face_location(filename):
@selalipop
selalipop / GameState.cs
Last active September 9, 2022 20:29
Using Server-Sent-Events in Unity
using Newtonsoft.Json;
///Use of Newtonsoft.Json is fully optional
namespace Backend
{
[JsonObject]
public struct GameState
{
[JsonProperty("maxPlayers")] public int MaxPlayers;
[JsonProperty("imposterCount")] public int ImposterCount;
@GeorgeTsiokos
GeorgeTsiokos / ClientDisconnectTokenFactory.cs
Last active October 25, 2023 15:53
CancellationToken GetClientDisconnectToken(HttpListenerRequest request)
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Net;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace OpenSource.Net
{

DaVinci Resolve Scripting Documentation

Updated as of 08 March 2019


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.

Overview

As with Blackmagic Design 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, or via command line. This permission can be changed in Resolve Preferences, to be only from Console, or to be invoked from the local network. Please be aware of the security implications when allowing scripting access from outside of the Resolve application.

Foreward

This document was originally written several years ago. At the time I was working as an execution core verification engineer at Arm. The following points are coloured heavily by working in and around the execution cores of various processors. Apply a pinch of salt; points contain varying degrees of opinion.

It is still my opinion that RISC-V could be much better designed; though I will also say that if I was building a 32 or 64-bit CPU today I'd likely implement the architecture to benefit from the existing tooling.

Mostly based upon the RISC-V ISA spec v2.0. Some updates have been made for v2.2

Original Foreword: Some Opinion

The RISC-V ISA has pursued minimalism to a fault. There is a large emphasis on minimizing instruction count, normalizing encoding, etc. This pursuit of minimalism has resulted in false orthogonalities (such as reusing the same instruction for branches, calls and returns) and a requirement for superfluous instructions which impacts code density both in terms of size and

@SamL98
SamL98 / skiphook.m
Created June 6, 2019 00:01
Hooks and accompanying code for Skiptracing
// MARK: SkipManager
#define NUM_SKIP_BYTES 10
#define BYTES_PER_LINE 34
#define SKIP_FILE_PATH "/Users/samlerner/Documents/Spotify/skipped.csv"
// SkipManager class to handle writing skips to files
class SkipManager {
public:
@Toyz
Toyz / OW1 CMD
Last active March 29, 2025 07:55
All command line options to Overwatch
----------POSSIBLE OPTIONS----------------------------------------------
--account : [optional] account name to login with
--key : [optional] connection key for the server (defaults to 1 in debug)
--automationRoutine : [optional] automation routine to run after login
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid
--gatherEffectStats : [optional] enables effect stat gathering
--noautoconnect : [optional] Do not automatically connect to a server
--fastQuit
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets
--startPosition : [optional] start position when joining a map
sudo yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel -y
mkdir ~/ffmpeg_sources
# nasm
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./autogen.sh
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active April 2, 2025 08:58
Front-end frameworks popularity (React, Vue, Angular and Svelte)