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
... | |
obj.clone( (cloned)=> { | |
canvas.discardActiveObject(); | |
cloned.set({ | |
left: cloned.left + 10, | |
top: cloned.top + 10, | |
evented: true, | |
}); | |
if (cloned.type === 'activeSelection') { | |
// active selection needs a reference to the canvas. |
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
# http://www.arunviswanathan.com/node/53 | |
xrandr | grep maximum | |
gtf 1440 900 59.9 | |
xrandr --newmode "1440x900_59.90" 106.29 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync | |
xrandr --addmode VGA 1440x900_59.90 | |
xrandr --addmode HDMI 1440x900_59.90 |
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 | |
START=$1 | |
END=$2 | |
DATE="17/02/08" | |
CAMERA="eda-120hr" | |
FRAMERATE=15 | |
OUTPUT="$CAMERA"_"$START"-"$END".avi | |
## save $START, just in case if we need it later ## | |
i=$START |
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
function wait_sec { | |
secs=$1 | |
[[ -n ${secs//[0-9]/} ]] && "Please provide secs number. e.g. wait_sec 34" && return | |
while [ $secs -gt 0 ]; do | |
echo -ne "$secs\033[0K\r" | |
sleep 1 | |
: $((secs--)) | |
done | |
} |
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 | |
die () { | |
echo >&2 "$@" | |
exit 1 | |
} | |
[ "$#" -eq 1 ] || die "1 argument required, $# provided" | |
nomainfile=(templates files) | |
while read dir |