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
function onValueChanged() | |
self.values.x = math.modf(self.values.x * self.properties.gridSteps, self.properties.gridSteps) / (self.properties.gridSteps-1) | |
end |
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
function resetGrid(grid,setTo) | |
local gridColumns = grid.properties.gridX | |
local gridRows = grid.properties.gridY | |
for i=1,gridRows*gridColumns,1 | |
do | |
grid.children[i].values.x = setTo | |
end | |
end |
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
function printObject(object) | |
print("-------------------------------------------------") | |
print("Values of",object.properties.name) | |
print("-------------------------------------------------") | |
for key, value in pairs(object.values.keys) do | |
print(value,"=",object.values[value]) | |
end | |
print("-------------------------------------------------") |
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 consonants = ["t","k","p","b","m","qu","th","w","r","f","l","j","z","x","c","v","n","d","g","h"]; | |
var vowels = ["a","o","e","i","u"]; | |
function getConsonant() | |
{ | |
return consonants[Math.floor(Math.random()*consonants.length)]; | |
} | |
function getVowel() | |
{ |
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
ffmpeg -i input.mov -vf "crop=1080:1080:420:0" output.mov |
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
ffmpeg -loop 1 -i input.png -i input.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest output.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
echo "TURN OFF WINDOWS DEFENDER FROM CONTROL PANEL, THEN HIT SPACE." | |
pause | |
echo "TURN ON AIRPLANE MODE, THEN HIT SPACE." | |
pause | |
echo "TURN OFF NIGHT LIGHT FOR VIDEO WORK, THEN HIT SPACE." |