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 | |
# execute make on all sub-directories that have a make file | |
find . -type f -name Makefile -exec echo -e "\v\v+--- {}" \; -execdir make \; |
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 | |
# rebuild CMake project | |
if [ -f build/CMakeCache.txt ]; then | |
rm -r build | |
mkdir build | |
cd build | |
cmake .. | |
make | |
else |
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 filename = "test.aep"; | |
var my_file = new File(filename); | |
app.open(my_file); | |
app.executeCommand(3841); | |
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 | |
FILENAME=$1 | |
ffmpeg -i ${FILENAME}.ts -c:v libx264 -c:a copy -bsf:a aac_adtstoasc ${FILENAME}.mp4 |
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
//Autofade: Add to opacity | |
// If there are two markers on the layer, then they are used to set the duration; otherwise, a default value is used. | |
transition = 15; // transition time in frames | |
var v = transform.opacity; | |
if (marker.numKeys<2){ | |
tSecs = transition / ( 1 / thisComp.frameDuration); // convert to seconds | |
ease(time, inPoint, inPoint + tSecs, 0, v) - ease(time, outPoint - tSecs, outPoint, 0, v) | |
}else{ | |
ease(time, inPoint, marker.key(1).time, 0, v) - ease(time, marker.key(2).time, outPoint, 0, v) | |
} |
NewerOlder