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
import os | |
import glob | |
import random | |
source_dir = './frames/background' | |
overlay_dir_1 = './frames/stroller' | |
overlay_dir_2 = './frames/flying-things' | |
output_dir = source_dir + '/out' | |
slices_per_frame = 10 |
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
#! /bin/bash | |
# Combine an audio file with an image into a video. | |
# | |
# Input: | |
# - Audio file: render.wav | |
# - Image file: cover.png | |
# | |
# Output: | |
# - Video file: 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebMidi Test 1</title> | |
<script type="text/javascript"> | |
navigator.requestMIDIAccess() | |
.then(function(access) { | |
window.ma = access |
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
# ----------------------------------------------------------------------------- | |
# This awk script is aimed at analyzing jstack output data to help find lock | |
# contention, hot locks and the like in Java apps. | |
# Just pipe jstack to awk running this script and take a look at the output. | |
# | |
# Author: Rodrigo Altamirano (rodrigo.altamirano@gmail.com) | |
# ----------------------------------------------------------------------------- | |
# Initializing and configuring... |