Skip to content

Instantly share code, notes, and snippets.

View mvelbaum's full-sized avatar

Michael Velbaum mvelbaum

  • Tel Aviv, Israel
View GitHub Profile
@mvelbaum
mvelbaum / jaxb-index-pom.xml
Last active March 21, 2016 05:42
POM for generating jaxb.index files for custom JAXB model classes
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>artifact</artifactId>
<version>1.0-SNAPSHOT</version>
#!/usr/bin/env python
import math
import sys
from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips
# Get average RGB of part of a frame. Frame is H * W * 3 (rgb)
# Assumes x1 < x2, y1 < y2