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 json, sys, os, subprocess | |
def isNumber(i): | |
if type(i) == int or type(i) == float: | |
return True | |
else: | |
return False | |
def isVideo(filename): | |
chunks = filename.split(".") |
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 json, sys, os | |
from PIL import Image | |
def isNumber(i): | |
if type(i) == int or type(i) == float: | |
return True | |
else: | |
return False | |
def isJPEG(filename): |
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
from moviepy.editor import VideoFileClip, concatenate_videoclips | |
clip1 = VideoFileClip("1.mp4") | |
clip2 = VideoFileClip("2.mp4") | |
clip3 = VideoFileClip("3.mp4") | |
clip4 = VideoFileClip("4.mp4") | |
clip5 = VideoFileClip("5.mp4") | |
clip6 = VideoFileClip("6.mp4") | |
final_clip = concatenate_videoclips([clip1,clip2, clip3, clip4, clip5, clip6]) |
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
// class | |
function Serial(path, birate, dataBit, stopBit, parityBit, stageManager) { | |
this.path = path; | |
this.birate = birate; | |
this.dataBit = dataBit; | |
this.stopBit = stopBit; | |
this.parityBit = parityBit; | |
this.stageManager = stageManager; | |
this.connectionId = null; | |
this.buffer = ""; |
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
async function start () { | |
try { | |
let result1 = await callAwaitFunction(2); | |
console.log(result1); | |
let result2 = await callAwaitFunction(-1); | |
console.log(result2); | |
// these 2 lines won't be reached because of the exception | |
let result3 = await callAwaitFunction(2); |