This file contains hidden or 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 | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update |
This file contains hidden or 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
*/1 * * * * /Users/sebastienlavoie/All/Seb/Websites/dovi-renderer/storage/app/cron/exec.sh |
This file contains hidden or 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
// To open console, in chrome, do cmd+option+j or ctrl+shift+j | |
// Copy paste code below in console to switch to english | |
var translationsEn = [ | |
"INVOICE", | |
"From", | |
"For", | |
"Invoice ID", | |
"PO Number", | |
"Issue Date", |
This file contains hidden or 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 file contains hidden or 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
L = thisComp.layer("the layer"); | |
max = 5; // number of words to display | |
n = 0 | |
if (L.marker.numKeys > 0){ | |
n = L.marker.nearestKey(time).index; | |
if (L.marker.key(n).time > time){ | |
n--; | |
} | |
} | |
s = " "; |
This file contains hidden or 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
makeWebm() { | |
FILE=$1 | |
BITRATE=${2:-'3450'} | |
SIZE=${3:-'1280x720'} | |
FILENAME=${FILE%%.*} | |
ffmpeg -i ${FILE} -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b ${BITRATE}k -s ${SIZE} ${FILENAME}.webm | |
} | |
makeWebms() { | |
BITRATE=${1:-'3450'} |
This file contains hidden or 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
var gulp = require("gulp"); | |
var gutil = require("gulp-util"); | |
var compass = require("gulp-compass"); | |
var coffee = require("gulp-coffee"); | |
var imagemin = require("gulp-imagemin"); | |
var concat = require("gulp-concat"); | |
var minifyCSS = require('gulp-minify-css'); | |
var path = require('path'); | |
gulp.task("compass", function(){ |
This file contains hidden or 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
effects: | |
- type: cc repetile | |
properties: | |
expand right: 5000 | |
expand left: 5000 | |
expand down: 5000 | |
expand up: 5000 | |
tiling: 4 | |
- type: transform | |
- type: mirror |
This file contains hidden or 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
tMin = .25; //minimum segment duration | |
tMax = .5; //maximum segment duration | |
minVal = [-50,-50]; | |
maxVal = [50,50]; | |
start=0; | |
end = 0; | |
j = 0; | |
while (time >= end){ | |
j ++; | |
seedRandom(j,true); |
This file contains hidden or 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 from source folder’s root. | |
find . -type d -exec mkdir ../destination-folder-name/{} \; |